mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 18:39:43 +00:00
Use Person::centerHistory
to load fixtures with given center
This commit is contained in:
@@ -104,7 +104,8 @@ final class HouseholdApiControllerTest extends WebTestCase
|
||||
->from(Household::class, 'household')
|
||||
->join('household.members', 'members')
|
||||
->join('members.person', 'person')
|
||||
->join('person.center', 'center')
|
||||
->join('person.centerCurrent', 'cc')
|
||||
->join('cc.center', 'center')
|
||||
->where($qb->expr()->eq('center.name', ':center_name'))
|
||||
->andWhere($qb->expr()->gt('SIZE(person.accompanyingPeriodParticipations)', 0))
|
||||
->setParameter('center_name', 'Center A')
|
||||
|
Reference in New Issue
Block a user