Пример #1
0
 /**
  * @param Election $election
  */
 public function editAction(Election $election)
 {
     $this->view->assign('election', $election);
     $this->view->assign('electorates', $this->electorateRepository->findAll());
     $this->view->assign('nominees', $this->nomineeRepository->findAll());
 }
Пример #2
0
 /**
  * @param Election|null $election Optional Election which any imported Elector will be assigned to
  */
 public function importAction(Election $election = null)
 {
     $this->view->assign('electorImport', new ElectorImportDto($election, $this->electorateRepository->findAll()));
 }
 /**
  *
  */
 public function listAction()
 {
     $this->view->assign('electorates', $this->electorateRepository->findAll());
 }