|
@@ -55,7 +55,7 @@ class EventRepository extends ServiceEntityRepository
|
|
|
$dateNow = new \DateTime('now');
|
|
|
|
|
|
$qb = $this->createQueryBuilder('e')
|
|
|
- ->where('e.published = :published OR e.published = NULL')
|
|
|
+ ->where('e.published != :published')
|
|
|
->andWhere('e.endOn > :dateNow')
|
|
|
->setParameter('published', false)
|
|
|
->setParameter('dateNow', $dateNow)
|