|
@@ -24,7 +24,7 @@ class FilmRepository extends \Doctrine\ORM\EntityRepository
|
|
|
$qb = $this->createQueryBuilder('f');
|
|
|
$qb
|
|
|
->innerJoin('f.genres', 'g')
|
|
|
- ->addSelect('f');
|
|
|
+ ->addSelect('g');
|
|
|
|
|
|
$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('f');
|
|
|
+ ->addSelect('r');
|
|
|
|
|
|
$qb->where($qb->expr()->in('r.nomComplet', $realisateursnames));
|
|
|
|