Entity/ParamUsersRepository.php
public function banUtilisateur($idUser, $activeOuDesactive) {
		$oQb = $this->createQueryBuilder('U');
	
		$oQb->update()
			->set('U.isActive', ':param')
			->where($oQb->expr()->eq('U.id', ':idUser'))
			->setParameter(':idUser', $idUser)
			->setParameter(':param', $activeOuDesactive);
	
		$iRetour = $oQb->getQuery()->execute();
	
		return $iRetour;
	}
public function banUtilisateur($idUser, $activeOuDesactive) {
		$oQb = $this->createQueryBuilder('U');
	
		$oQb->update()
			->set('U.isActive', ':param')
			->where($oQb->expr()->eq('U.id', ':idUser'))
			->setParameter(':idUser', $idUser)
			->setParameter(':param', $activeOuDesactive);
	
		$iRetour = $oQb->getQuery()->execute();
	
		return $iRetour;
	}
Désactive un utilisateur

@param int $idUser
@param int $activeOuDesactive
@return mixed