Exemple #1
0
 /**
  * @param User $user
  * @return \Doctrine\Common\Collections\ArrayCollection
  */
 public function organizationsOfUser(User $user)
 {
     $orgs = $this->userRepo->organizationsOfUser($user);
     $user->setOrganizations($orgs);
     return $orgs;
 }
 public function getUser($username)
 {
     $username = new Username($username);
     $user = $this->userRepo->userOfUsername($username);
     return $user;
 }