/**
  * @return void
  */
 public function indexAction()
 {
     $this->view->assign('locations', $this->locationRepository->findAll());
 }
Exemplo n.º 2
0
 /**
  */
 public function getAviableLocations()
 {
     $locs = $this->getLocations();
     if (empty($locs) || $locs->count() == 0) {
         $locs = $this->locationRepository->findAll();
     }
     return $locs;
 }
Exemplo n.º 3
0
 /**
  * @param \DLigo\Animaltool\Domain\Model\User $user
  * @return void
  */
 public function editAction(User $user)
 {
     $this->view->assign('roles', $this->getRoles());
     $this->view->assign('user', $user);
     $this->view->assign('allLocations', $this->locationRepository->findAll());
 }