Browse Source

bug fix: pas d'espace entre count et "(".

Bastien Sevajol 11 years ago
parent
commit
54e6c77596
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Muzich/CoreBundle/Repository/ElementRepository.php

+ 1 - 1
src/Muzich/CoreBundle/Repository/ElementRepository.php View File

@@ -266,7 +266,7 @@ class ElementRepository extends EntityRepository
266 266
       
267 267
       $sql = "SELECT et.element_id FROM elements_tag et "
268 268
       ."WHERE et.tag_id IN ($tag_ids) group by et.element_id "
269
-      ."having count (distinct et.tag_id) = ".count($tags);
269
+      ."having count(distinct et.tag_id) = ".count($tags);
270 270
       $rsm = new \Doctrine\ORM\Query\ResultSetMapping;
271 271
       $rsm->addScalarResult('element_id', 'element_id');
272 272