Example #1
0
 public function modifierAction(Serie $serie)
 {
     $serie->setDateModification(new \Datetime());
     $form = $this->createForm(new SerieType(), $serie);
     $formHandler = new SerieHandler($form, $this->get('request'), $this->getDoctrine()->getEntityManager(), 1);
     if ($formHandler->process()) {
         $this->get("session")->setFlash('succes', 'Série Modifier!');
     }
     return $this->render('SerieZoneSerieBundle:Serie:ModifierSerie.html.twig', array('form' => $form->createView()));
 }
 public function setDateModification($dateModification)
 {
     $this->__load();
     return parent::setDateModification($dateModification);
 }