Added tests

This commit is contained in:
Nicolas Lœuillet
2016-11-18 17:36:19 +01:00
parent 49b042dfdf
commit 32f455c131
6 changed files with 73 additions and 5 deletions

View File

@ -110,8 +110,7 @@ class EntryRepository extends EntityRepository
$qb
->andWhere('e.content LIKE :term OR e.title LIKE :term')->setParameter('term', '%'.$term.'%')
->leftJoin('e.tags', 't')
->groupBy('e.id')
->having('count(t.id) = 0');
->groupBy('e.id');
return $qb;
}