Explorar el Código

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

Bastien Sevajol hace 12 años
padre
commit
54e6c77596
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Muzich/CoreBundle/Repository/ElementRepository.php

+ 1 - 1
src/Muzich/CoreBundle/Repository/ElementRepository.php Ver fichero

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