瀏覽代碼

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()