From a2b2cafbcee91d48497179a675de994a4f2efef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 13 Jan 2023 14:39:15 +0100 Subject: [PATCH] Fixe: [regulation list] fix query when selecting a scope Fix https://gitlab.com/Chill-Projet/chill-bundles/-/issues/45 --- .../Repository/AccompanyingPeriodACLAwareRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php index 071f7b3eb..7de509f1f 100644 --- a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php @@ -326,7 +326,7 @@ final class AccompanyingPeriodACLAwareRepository implements AccompanyingPeriodAC $or = $qb->expr()->orX(); foreach ($services as $key => $service) { - $or->add($qb->expr()->isMemberOf('ap.scopes', ':scope_' . $key)); + $or->add($qb->expr()->isMemberOf(':scope_' . $key, 'ap.scopes')); $qb->setParameter('scope_' . $key, $service); } $qb->andWhere($or);