Loading module/Application/src/Controller/DroitsController.php +5 −5 Changes for module/Application/src/Controller/DroitsController.php: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ class DroitsController extends AbstractController if ($form->isValid()) { try { $this->getServiceRole()->save($role); $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); $form->get('id')->setValue($role->getId()); // transmet le nouvel ID } catch (\Exception $e) { $errors[] = $this->translate($e); Loading @@ -115,7 +115,7 @@ class DroitsController extends AbstractController $title = "Suppression du rôle"; $form = $this->makeFormSupprimer(function () use ($role) { $this->getServiceRole()->delete($role); $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); $this->getSessionContainer()->offsetUnset('privileges' . $this->getServiceContext()->getAnnee()->getId()); }); Loading Loading @@ -164,7 +164,7 @@ class DroitsController extends AbstractController if ($role) $this->roleRemovePrivilege($role, $privilege); break; } $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); return compact('role', 'privilege'); } Loading Loading @@ -250,7 +250,7 @@ class DroitsController extends AbstractController } } } $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); return compact('form', 'title', 'errors'); } Loading @@ -266,7 +266,7 @@ class DroitsController extends AbstractController $form = $this->makeFormSupprimer(function () use ($affectation) { $this->getServiceAffectation()->delete($affectation); }); $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); return compact('affectation', 'title', 'form'); } Loading module/Application/src/Provider/Role/RoleProvider.php +1 −1 Changes for module/Application/src/Provider/Role/RoleProvider.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ class RoleProvider implements ProviderInterface, EntityManagerAwareInterface r.histoDestruction IS NULL' )->setParameter('utilisateur', $utilisateur); $query->useResultCache(true); $query->setResultCacheId(__CLASS__ . '/affectations'); $query->setResultCacheId(str_replace('\\', '_', __CLASS__) . '_affectations'); $result = $query->getResult(); Loading Loading
module/Application/src/Controller/DroitsController.php +5 −5 Changes for module/Application/src/Controller/DroitsController.php: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ class DroitsController extends AbstractController if ($form->isValid()) { try { $this->getServiceRole()->save($role); $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); $form->get('id')->setValue($role->getId()); // transmet le nouvel ID } catch (\Exception $e) { $errors[] = $this->translate($e); Loading @@ -115,7 +115,7 @@ class DroitsController extends AbstractController $title = "Suppression du rôle"; $form = $this->makeFormSupprimer(function () use ($role) { $this->getServiceRole()->delete($role); $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); $this->getSessionContainer()->offsetUnset('privileges' . $this->getServiceContext()->getAnnee()->getId()); }); Loading Loading @@ -164,7 +164,7 @@ class DroitsController extends AbstractController if ($role) $this->roleRemovePrivilege($role, $privilege); break; } $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); return compact('role', 'privilege'); } Loading Loading @@ -250,7 +250,7 @@ class DroitsController extends AbstractController } } } $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); return compact('form', 'title', 'errors'); } Loading @@ -266,7 +266,7 @@ class DroitsController extends AbstractController $form = $this->makeFormSupprimer(function () use ($affectation) { $this->getServiceAffectation()->delete($affectation); }); $this->doctrineCache->delete(RoleProvider::class . '/affectations'); $this->doctrineCache->delete(RoleProvider::class . '_affectations'); return compact('affectation', 'title', 'form'); } Loading
module/Application/src/Provider/Role/RoleProvider.php +1 −1 Changes for module/Application/src/Provider/Role/RoleProvider.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ class RoleProvider implements ProviderInterface, EntityManagerAwareInterface r.histoDestruction IS NULL' )->setParameter('utilisateur', $utilisateur); $query->useResultCache(true); $query->setResultCacheId(__CLASS__ . '/affectations'); $query->setResultCacheId(str_replace('\\', '_', __CLASS__) . '_affectations'); $result = $query->getResult(); Loading