Use Person::centerHistory to load fixtures with given center

This commit is contained in:
2023-07-28 01:22:55 +02:00
parent 0e94e769cb
commit 6f2b538e27
5 changed files with 28 additions and 21 deletions

View File

@@ -39,7 +39,8 @@ final class TimelineAccompanyingPeriodTest extends WebTestCase
->from(Person::class, 'p')
->join('p.accompanyingPeriodParticipations', 'part')
->join('part.accompanyingPeriod', 'period')
->join('p.center', 'center')
->join('p.centerCurrent', 'cc')
->join('cc.center', 'center')
->select('p.id')
->where($qb->expr()->eq('center.name', ':center'))
->setParameter('center', 'Center A')