diff --git a/src/Repository/AssignmentRepository.php b/src/Repository/AssignmentRepository.php index d0ee3a7..ef2eeda 100644 --- a/src/Repository/AssignmentRepository.php +++ b/src/Repository/AssignmentRepository.php @@ -55,11 +55,12 @@ class AssignmentRepository extends ServiceEntityRepository $qb = $this->createQueryBuilder('assignment'); $qb - ->select('assignment', 'destination', 'job_profile', 'application') - ->innerJoin('assignment.teamers', 'teamer', Join::WITH, 'teamer = :teamer') + ->select('assignment', 'destination', 'job_profile', 'application', 'disposition') ->innerJoin('assignment.destination', 'destination') ->innerJoin('assignment.jobProfile', 'job_profile') - ->leftJoin('assignment.applications', 'application') + ->innerJoin('assignment.teamers', 'teamer', Join::WITH, 'teamer = :teamer') + ->leftJoin('assignment.applications', 'application', Join::WITH, 'application.teamer = :teamer') + ->leftJoin('assignment.dispositions', 'disposition', Join::WITH, 'disposition.teamer = :teamer') ->setParameter('teamer', $teamer) ;