/** * @Secure(roles="ROLE_AUTEUR") */ public function modifierAction(Episode $episode) { $episode->setDateAjout(new \Datetime()); $form = $this->createForm(new EpisodeType(), $episode); $formHandler = new EpisodeHandler($form, $this->get('request'), $this->getDoctrine()->getEntityManager()); if ($formHandler->process()) { $this->get("session")->setFlash('succes', 'Épisode Modifier!'); } return $this->render('SerieZoneSerieBundle:Episode:Modifier.html.twig', array('form' => $form->createView())); }
public function setDateAjout($dateAjout) { $this->__load(); return parent::setDateAjout($dateAjout); }