Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Repository/CalendarInstanceRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public function findAllSchedulingObjectsForCalendar(int $calendarInstanceId, str
{
$objectRepository = $this->getEntityManager()->getRepository(SchedulingObject::class);
return $objectRepository->createQueryBuilder('s')
->leftJoin(CalendarObject::class, 'c', \Doctrine\ORM\Query\Expr\Join::WITH, 'c.uri = s.uri')
->leftJoin(CalendarInstance::class, 'ci', \Doctrine\ORM\Query\Expr\Join::WITH, 'ci.calendar = c.calendar')
->innerJoin(CalendarObject::class, 'c', \Doctrine\ORM\Query\Expr\Join::WITH, 'c.uri = s.uri')
->innerJoin(CalendarInstance::class, 'ci', \Doctrine\ORM\Query\Expr\Join::WITH, 'ci.calendar = c.calendar')
->where('ci.id = :id')
// uri is not unique across calendars — two different calendars can have objects with the same uri.
// The join should also filter by principaluri as a consequence
Expand Down
Loading