diff --git a/src/Repository/DispositionRepository.php b/src/Repository/DispositionRepository.php index 7289875..b287fcf 100644 --- a/src/Repository/DispositionRepository.php +++ b/src/Repository/DispositionRepository.php @@ -172,11 +172,12 @@ class DispositionRepository extends ServiceEntityRepository $qb = $this->createQueryBuilder('disposition'); $qb - ->select('disposition', 'assignment', 'destination') + ->select('disposition', 'assignment', 'destination', 'feedback') ->innerJoin('disposition.assignment', 'assignment') ->innerJoin('assignment.destination', 'destination') + ->leftJoin('disposition.feedback', 'feedback') ->where($qb->expr()->andX( - $qb->expr()->isNull('disposition.feedback'), + $qb->expr()->isNull('feedback'), $qb->expr()->lt('destination.dateTo', ':dateTo') )) ->setParameter('dateTo', new \DateTimeImmutable())