From e7985ea52f3e4993b109b9fb7c62d1b26afde78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 6 May 2021 12:55:40 +0200 Subject: [PATCH] customize controller for origin --- .../Controller/OpeningApiController.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Bundle/ChillPersonBundle/Controller/OpeningApiController.php diff --git a/src/Bundle/ChillPersonBundle/Controller/OpeningApiController.php b/src/Bundle/ChillPersonBundle/Controller/OpeningApiController.php new file mode 100644 index 000000000..3b44162c4 --- /dev/null +++ b/src/Bundle/ChillPersonBundle/Controller/OpeningApiController.php @@ -0,0 +1,17 @@ +where($qb->expr()->gt('e.noActiveAfter', ':now')) + ->orWhere($qb->expr()->isNull('e.noActiveAfter')); + $qb->setParameter('now', new \DateTime('now')); + } +}