Browse Source

Récup de tous les genres

François 6 years ago
parent
commit
2876be04aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/AppBundle/Repository/FilmRepository.php

+ 2 - 2
src/AppBundle/Repository/FilmRepository.php

@@ -24,7 +24,7 @@ class FilmRepository extends \Doctrine\ORM\EntityRepository
         $qb = $this->createQueryBuilder('f');
         $qb
             ->innerJoin('f.genres', 'g')
-            ->addSelect('g', 'f');
+            ->addSelect('f');
 
         $qb->where($qb->expr()->in('g.name', $genreNames));
 
@@ -37,7 +37,7 @@ class FilmRepository extends \Doctrine\ORM\EntityRepository
         $qb = $this->createQueryBuilder('f');
         $qb
             ->innerJoin('f.realisateurs', 'r')
-            ->addSelect('r','f');
+            ->addSelect('f');
 
         $qb->where($qb->expr()->in('r.nomComplet', $realisateursnames));