Loading CHANGELOG.md +4 −0 Original line number Diff line number Diff line Journal des modifications ========================= 0.0.2 (29/03/2021) ----- - [Fix] Correction exception incomplete dans UserService 0.0.1 (12/03/2021) ----- Loading src/UnicaenUtilisateur/Service/User/UserService.php +7 −7 Original line number Diff line number Diff line Loading @@ -156,7 +156,7 @@ class UserService implements RechercheIndividuServiceInterface $this->getEntityManager()->persist($user); $this->getEntityManager()->flush($user); } catch (ORMException $e) { throw new RuntimeException("Un problème est survenue lors de l'enregistrement en base d'un User.", $e); throw new RuntimeException("Un problème est survenue lors de l'enregistrement en base d'un User.", 0, $e); } return $user; } Loading @@ -183,7 +183,7 @@ class UserService implements RechercheIndividuServiceInterface try { $this->getEntityManager()->flush($utilisateur); } catch (ORMException $e) { throw new RuntimeException("Un problème est survenue lors de la mise à jour en base d'un User.", $e); throw new RuntimeException("Un problème est survenue lors de la mise à jour en base d'un User.", 0, $e); } return $utilisateur; } Loading @@ -201,7 +201,7 @@ class UserService implements RechercheIndividuServiceInterface try { $result = $qb->getQuery()->getOneOrNullResult(); } catch (NonUniqueResultException $e) { throw new RuntimeException("Plusieurs utilisateurs partage le même username [".$username."] !"); throw new RuntimeException("Plusieurs utilisateurs partage le même username [".$username."] !", 0,$e); } return $result; } Loading @@ -223,7 +223,7 @@ class UserService implements RechercheIndividuServiceInterface try { $this->getEntityManager()->flush($utilisateur); } catch (ORMException $e) { throw new RuntimeException("Un erreur est survenue lors du changement de status de l'utilisateur [".$utilisateur->getId()."]"); throw new RuntimeException("Un erreur est survenue lors du changement de status de l'utilisateur [".$utilisateur->getId()."]",0,$e); } } return $utilisateur; Loading @@ -240,7 +240,7 @@ class UserService implements RechercheIndividuServiceInterface try { $this->getEntityManager()->flush(); } catch (ORMException $e) { throw new RuntimeException("Un problème s'est produit lors de l'ajout du rôle [".$role->getId()."] à l'utilisateur [".$utilisateur->getId()."]"); throw new RuntimeException("Un problème s'est produit lors de l'ajout du rôle [".$role->getId()."] à l'utilisateur [".$utilisateur->getId()."]",0,$e); } return $utilisateur; } Loading @@ -256,7 +256,7 @@ class UserService implements RechercheIndividuServiceInterface try { $this->getEntityManager()->flush(); } catch (ORMException $e) { throw new RuntimeException("Un problème s'est produit lors du retrait du rôle [".$role->getId()."] à l'utilisateur [".$utilisateur->getId()."]"); throw new RuntimeException("Un problème s'est produit lors du retrait du rôle [".$role->getId()."] à l'utilisateur [".$utilisateur->getId()."]",0,$e); } return $utilisateur; } Loading @@ -270,7 +270,7 @@ class UserService implements RechercheIndividuServiceInterface $this->getEntityManager()->remove($utilisateur); $this->getEntityManager()->flush(); } catch (ORMException $e) { throw new RuntimeException("Un problème s'est produit lors de la suppression de l'utilisateur [".$utilisateur->getId()."]"); throw new RuntimeException("Un problème s'est produit lors de la suppression de l'utilisateur [".$utilisateur->getId()."]",0,$e); } } Loading Loading
CHANGELOG.md +4 −0 Original line number Diff line number Diff line Journal des modifications ========================= 0.0.2 (29/03/2021) ----- - [Fix] Correction exception incomplete dans UserService 0.0.1 (12/03/2021) ----- Loading
src/UnicaenUtilisateur/Service/User/UserService.php +7 −7 Original line number Diff line number Diff line Loading @@ -156,7 +156,7 @@ class UserService implements RechercheIndividuServiceInterface $this->getEntityManager()->persist($user); $this->getEntityManager()->flush($user); } catch (ORMException $e) { throw new RuntimeException("Un problème est survenue lors de l'enregistrement en base d'un User.", $e); throw new RuntimeException("Un problème est survenue lors de l'enregistrement en base d'un User.", 0, $e); } return $user; } Loading @@ -183,7 +183,7 @@ class UserService implements RechercheIndividuServiceInterface try { $this->getEntityManager()->flush($utilisateur); } catch (ORMException $e) { throw new RuntimeException("Un problème est survenue lors de la mise à jour en base d'un User.", $e); throw new RuntimeException("Un problème est survenue lors de la mise à jour en base d'un User.", 0, $e); } return $utilisateur; } Loading @@ -201,7 +201,7 @@ class UserService implements RechercheIndividuServiceInterface try { $result = $qb->getQuery()->getOneOrNullResult(); } catch (NonUniqueResultException $e) { throw new RuntimeException("Plusieurs utilisateurs partage le même username [".$username."] !"); throw new RuntimeException("Plusieurs utilisateurs partage le même username [".$username."] !", 0,$e); } return $result; } Loading @@ -223,7 +223,7 @@ class UserService implements RechercheIndividuServiceInterface try { $this->getEntityManager()->flush($utilisateur); } catch (ORMException $e) { throw new RuntimeException("Un erreur est survenue lors du changement de status de l'utilisateur [".$utilisateur->getId()."]"); throw new RuntimeException("Un erreur est survenue lors du changement de status de l'utilisateur [".$utilisateur->getId()."]",0,$e); } } return $utilisateur; Loading @@ -240,7 +240,7 @@ class UserService implements RechercheIndividuServiceInterface try { $this->getEntityManager()->flush(); } catch (ORMException $e) { throw new RuntimeException("Un problème s'est produit lors de l'ajout du rôle [".$role->getId()."] à l'utilisateur [".$utilisateur->getId()."]"); throw new RuntimeException("Un problème s'est produit lors de l'ajout du rôle [".$role->getId()."] à l'utilisateur [".$utilisateur->getId()."]",0,$e); } return $utilisateur; } Loading @@ -256,7 +256,7 @@ class UserService implements RechercheIndividuServiceInterface try { $this->getEntityManager()->flush(); } catch (ORMException $e) { throw new RuntimeException("Un problème s'est produit lors du retrait du rôle [".$role->getId()."] à l'utilisateur [".$utilisateur->getId()."]"); throw new RuntimeException("Un problème s'est produit lors du retrait du rôle [".$role->getId()."] à l'utilisateur [".$utilisateur->getId()."]",0,$e); } return $utilisateur; } Loading @@ -270,7 +270,7 @@ class UserService implements RechercheIndividuServiceInterface $this->getEntityManager()->remove($utilisateur); $this->getEntityManager()->flush(); } catch (ORMException $e) { throw new RuntimeException("Un problème s'est produit lors de la suppression de l'utilisateur [".$utilisateur->getId()."]"); throw new RuntimeException("Un problème s'est produit lors de la suppression de l'utilisateur [".$utilisateur->getId()."]",0,$e); } } Loading