Browse Source

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

Bastien Sevajol 12 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
       
266
       
267
       $sql = "SELECT et.element_id FROM elements_tag et "
267
       $sql = "SELECT et.element_id FROM elements_tag et "
268
       ."WHERE et.tag_id IN ($tag_ids) group by et.element_id "
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
       $rsm = new \Doctrine\ORM\Query\ResultSetMapping;
270
       $rsm = new \Doctrine\ORM\Query\ResultSetMapping;
271
       $rsm->addScalarResult('element_id', 'element_id');
271
       $rsm->addScalarResult('element_id', 'element_id');
272
       
272