/** * @param Election $election */ public function updateAction(Election $election) { $this->electionRepository->update($election); $this->redirect(self::ACTION_LIST); }