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