From ccb4d6cfb54d778078ca04d88cbacb11e7adaa3e Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Thu, 24 Mar 2016 11:29:17 +0100 Subject: [PATCH] Correction of routing : id -> event_id --- Controller/EventController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/EventController.php b/Controller/EventController.php index ddc6e4ebc..bb73708a2 100644 --- a/Controller/EventController.php +++ b/Controller/EventController.php @@ -49,7 +49,7 @@ class EventController extends Controller $em->persist($entity); $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(