Changes for src/UnicaenPrivilege/Service/Privilege/PrivilegeService.php: 2 added lines, 1 removed line.
Original line number
Diff line number
Diff line
@@ -150,7 +150,8 @@ class PrivilegeService extends CommonService implements PrivilegeProviderInterfa
}
try{
$this->getEntityManager()->flush();
// $this->getEntityManager()->flush();
$this->update($privilege);
}catch(ORMException$e){
thrownewRuntimeException("Un problème est survenu lors du changement de privilège \"".$privilege->getLibelle()."\" pour le rôle \"".$role->getLibelle()."\".",$e);