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