From 4a3988f5b690853b0b4ce7004fcda855df4c8902 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 17 May 2022 22:07:44 +0200 Subject: [PATCH] fix InterventionRepositoryQuery::filterHandler --- src/Repository/InterventionRepositoryQuery.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Repository/InterventionRepositoryQuery.php b/src/Repository/InterventionRepositoryQuery.php index e24bdaf..772afbb 100644 --- a/src/Repository/InterventionRepositoryQuery.php +++ b/src/Repository/InterventionRepositoryQuery.php @@ -17,7 +17,8 @@ class InterventionRepositoryQuery extends RepositoryQuery { if ('establishment' === $name) { $this - ->andWhere('.establishment = :establishment') + ->leftJoin('.establishmentGroups', 'g') + ->andWhere('g.establishment = :establishment') ->setParameter(':establishment', $value) ; }