There was an error while loading. Please reload this page.
1 parent 054a7f8 commit 4f9d123Copy full SHA for 4f9d123
1 file changed
src/Repository/CalendarInstanceRepository.php
@@ -82,8 +82,8 @@ public function findAllSchedulingObjectsForCalendar(int $calendarInstanceId, str
82
{
83
$objectRepository = $this->getEntityManager()->getRepository(SchedulingObject::class);
84
return $objectRepository->createQueryBuilder('s')
85
- ->leftJoin(CalendarObject::class, 'c', \Doctrine\ORM\Query\Expr\Join::WITH, 'c.uri = s.uri')
86
- ->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')
87
->where('ci.id = :id')
88
// uri is not unique across calendars — two different calendars can have objects with the same uri.
89
// The join should also filter by principaluri as a consequence
0 commit comments