diff --git a/src/Repository/EventRepository.php b/src/Repository/EventRepository.php index 7c89b4f..358e50f 100644 --- a/src/Repository/EventRepository.php +++ b/src/Repository/EventRepository.php @@ -102,7 +102,8 @@ public static function createEnabledCriteria(): Criteria public function findAllScheduledEvents(int $limit) { $now = new \DateTimeImmutable(); - $queryBuilder = $this->createQueryBuilder('e') + $queryBuilder = $this->createQueryBuilder('e'); + $queryBuilder ->where('e.enabled = :enabled') ->andWhere( $queryBuilder->expr()->orX(