Browse Source

erreur très conne

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

+ 2 - 2
src/Repository/EventRepository.php

@@ -55,7 +55,7 @@ class EventRepository extends ServiceEntityRepository
         $dateNow = new \DateTime('now');
 
          $qb = $this->createQueryBuilder('e')
-             ->where('e.published IS NULL OR e.published == :published')
+             ->where('e.published IS NULL OR e.published = :published')
              ->andWhere('e.endOn > :dateNow')
              ->setParameter('published', false)
              ->setParameter('dateNow', $dateNow)
@@ -72,7 +72,7 @@ class EventRepository extends ServiceEntityRepository
            ->getQuery();
 
         $result = $query->getResult();
-
+        
         if ($gamemaster) {
             $result = array_filter($result, function (Event $event) use ($gamemaster) {
                 return $event->getGamemastersAssigned()->contains($gamemaster);