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