Skip to content

Commit

Permalink
queryBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bertrams committed Aug 31, 2024
1 parent d221aa1 commit d83d923
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Repository/EventRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d83d923

Please sign in to comment.