Fix: Apply correct joins
This commit is contained in:
@@ -55,11 +55,12 @@ class AssignmentRepository extends ServiceEntityRepository
|
|||||||
$qb = $this->createQueryBuilder('assignment');
|
$qb = $this->createQueryBuilder('assignment');
|
||||||
|
|
||||||
$qb
|
$qb
|
||||||
->select('assignment', 'destination', 'job_profile', 'application')
|
->select('assignment', 'destination', 'job_profile', 'application', 'disposition')
|
||||||
->innerJoin('assignment.teamers', 'teamer', Join::WITH, 'teamer = :teamer')
|
|
||||||
->innerJoin('assignment.destination', 'destination')
|
->innerJoin('assignment.destination', 'destination')
|
||||||
->innerJoin('assignment.jobProfile', 'job_profile')
|
->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)
|
->setParameter('teamer', $teamer)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user