Browse Source

toujours pas

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

+ 2 - 2
src/Repository/EventRepository.php

@@ -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)
               ;