thrownewRuntimeException("Un problème est survenu lors de la suppression du privilège \"$privilege\"",null,$e);
}
return$privilege;
}
/**
* @param RoleInterface $role
@@ -173,7 +153,7 @@ class PrivilegeService extends CommonService implements PrivilegeProviderInterfa
// $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);
thrownewRuntimeException("Un problème est survenu lors du changement de privilège \"$privilege\" pour le rôle \"$role\".",$e);
($check?'Ajouter':'Retirer')." le privilège [".$this->privilege->getCategorie()->getLibelle()."|".$this->privilege->getLibelle()."] au rôle [".$role->getLibelle()."]",
($check?'Ajouter':'Retirer')." le privilège \"".$this->privilege->getCategorie()." \ ".$this->privilege."\" au rôle \"".$role."\"",