diff --git a/module/Application/src/Application/Provider/Role/RoleProvider.php b/module/Application/src/Application/Provider/Role/RoleProvider.php index e586c2645b1fc16e0eb36baea68e40b10bd8da1b..e10779d1f55e2c6bf3e24a7f13a0ce3b0e6eb643 100644 --- a/module/Application/src/Application/Provider/Role/RoleProvider.php +++ b/module/Application/src/Application/Provider/Role/RoleProvider.php @@ -69,7 +69,7 @@ class RoleProvider implements ProviderInterface, EntityManagerAwareInterface foreach ($qb->getQuery()->getResult() as $role) { /* @var $role \Application\Entity\Db\Role */ $roleId = $role->getType()->getCode(); if (! isset($this->roles[$roleId])){ - throw new Exception('Le rôle "'.$roleId.'" est inconnu.'); + throw new \Exception('Le rôle "'.$roleId.'" est inconnu.'); } $classname = get_class($this->roles[$roleId]); if ($this->roles[$roleId] instanceof StructureAwareInterface && $role->getStructure()){