Fix HouseholdACLAwareRepository: use the correct association to person's center

This commit is contained in:
2023-08-28 13:43:44 +02:00
parent e2d62d5792
commit 2c83b4c912
2 changed files with 4 additions and 2 deletions

View File

@@ -41,8 +41,9 @@ final readonly class HouseholdACLAwareRepository implements HouseholdACLAwareRep
$qb
->join($alias . '.members', 'members')
->join('members.person', 'person')
->join('person.centerCurrent', 'person_center_current')
->andWhere(
$qb->expr()->in('person.center', ':centers')
$qb->expr()->in('person_center_current.center', ':centers')
)
->setParameter('centers', $centers);