Correction of routing : id -> event_id

This commit is contained in:
Marc Ducobu 2016-03-24 11:29:17 +01:00
parent b1b258d76b
commit ccb4d6cfb5

View File

@ -49,7 +49,7 @@ class EventController extends Controller
$em->persist($entity); $em->persist($entity);
$em->flush(); $em->flush();
return $this->redirect($this->generateUrl('event_show', array('id' => $entity->getId()))); return $this->redirect($this->generateUrl('event_show', array('event_id' => $entity->getId())));
} }
return $this->render('ChillEventBundle:Event:new.html.twig', array( return $this->render('ChillEventBundle:Event:new.html.twig', array(