From abedf83dbd91a5cc0e6fd5bbe1a77448272738d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 11 Oct 2021 14:31:03 +0200 Subject: [PATCH] fix flushing after person creation --- src/Bundle/ChillPersonBundle/Controller/PersonController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonController.php b/src/Bundle/ChillPersonBundle/Controller/PersonController.php index 03da97d5f..f9190857c 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonController.php @@ -155,7 +155,7 @@ final class PersonController extends AbstractController $person = $this->_getPerson($person_id); if ($person === null) { - return $this->createNotFoundException(); + throw $this->createNotFoundException(); } $this->denyAccessUnlessGranted('CHILL_PERSON_UPDATE', $person,