Browse Source

correctif pour le 'null' de event.publish

garthh 3 weeks ago
parent
commit
f435115dde
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Repository/EventRepository.php

+ 1 - 1
src/Repository/EventRepository.php

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