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