コード例 #1
0
 /**
  * @param User $user
  */
 public function hydrateIsMyLeader(User $user)
 {
     $isMyLeader = in_array($user->getId(), $this->userRepository->getLeadersOf($this->securityContext->getToken()->getUser()->getId()));
     $user->setIsMyLeader($isMyLeader);
 }