Pour ne pas a voir a mettre les jointures ici, il faudrait que tout les rapports ressemble a ça:

```php
public function getData()
    {
        $queryBuilder = $this->queryBuilder->select('DISTINCT response.id');

        $reportQueryBuilder = $this->entityManager->createQueryBuilder();

        $reportQueryBuilder
            ->from('AfupBarometreBundle:Response', 'r')
            ->where(
                $reportQueryBuilder->expr()->in('r.id', $queryBuilder->getDQL())
            )
            ->select('r.experience')
            ->addSelect('AVG(r.annualSalary) as annualSalary')
            ->addSelect('COUNT(r.id) as nbResponse')
            ->groupBy('r.experience');

        return $reportQueryBuilder->getQuery()->getArrayResult();
    }
```

C'est-à dire faire un `where response.id IN (SELECT r.id)`