Преглед изворни кода

Pour le dashboard on supprime la recherche des commentaires sans date

Sangfroid пре 5 месеци
родитељ
комит
0636ad03c7
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/Repository/CommentaireRepository.php

+ 1 - 0
src/Repository/CommentaireRepository.php

@@ -34,6 +34,7 @@ class CommentaireRepository extends ServiceEntityRepository
     {
         return $this->createQueryBuilder('c')
             ->select("DATE_FORMAT(c.dateSubmitted, '%Y-%m') as month, COUNT(c.id) as entryCount")
+            ->where('c.dateSubmitted IS NOT NULL')
             ->groupBy('month')
             ->orderBy('month', 'ASC')
             ->getQuery()