Loading src/UnicaenAuth/Entity/Db/AbstractRole.php +17 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenAuth\Entity\Db; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** Loading Loading @@ -53,6 +54,14 @@ abstract class AbstractRole implements RoleInterface */ protected $users; /** * AbstractRole constructor. */ public function __construct() { $this->users = new ArrayCollection(); } /** * Get the id. * Loading Loading @@ -191,6 +200,14 @@ abstract class AbstractRole implements RoleInterface $this->users[] = $user; } /** * @param UserInterface $user */ public function removeUser(UserInterface $user) { $this->users->removeElement($user); } /** * * @return string Loading Loading
src/UnicaenAuth/Entity/Db/AbstractRole.php +17 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenAuth\Entity\Db; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** Loading Loading @@ -53,6 +54,14 @@ abstract class AbstractRole implements RoleInterface */ protected $users; /** * AbstractRole constructor. */ public function __construct() { $this->users = new ArrayCollection(); } /** * Get the id. * Loading Loading @@ -191,6 +200,14 @@ abstract class AbstractRole implements RoleInterface $this->users[] = $user; } /** * @param UserInterface $user */ public function removeUser(UserInterface $user) { $this->users->removeElement($user); } /** * * @return string Loading