Fixe: [regulation list] fix query when selecting a scope

Fix https://gitlab.com/Chill-Projet/chill-bundles/-/issues/45
This commit is contained in:
Julien Fastré 2023-01-13 14:39:15 +01:00
parent a913d2820d
commit a2b2cafbce
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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);