fix: don't show past assignments as potential matches for teamer
This commit is contained in:
@@ -252,11 +252,16 @@ class AssignmentRepository extends ServiceEntityRepository
|
||||
$qb->expr()->eq('assignment.status', ':status'),
|
||||
$qb->expr()->in('assignment.jobProfile', ':jobProfiles'),
|
||||
$qb->expr()->isNull('application'),
|
||||
$qb->expr()->isNull('disposition')
|
||||
$qb->expr()->isNull('disposition'),
|
||||
$qb->expr()->orX(
|
||||
$qb->expr()->gt('assignment.dateFrom', ':dateFrom'),
|
||||
$qb->expr()->gt('destination.dateFrom', ':dateFrom')
|
||||
)
|
||||
))
|
||||
->setParameter('status', Assignment::STATUS_OPEN)
|
||||
->setParameter('jobProfiles', $teamer->getJobProfiles())
|
||||
->setParameter('teamer', $teamer)
|
||||
->setParameter('dateFrom', new \DateTimeImmutable())
|
||||
;
|
||||
|
||||
return $qb
|
||||
|
||||
Reference in New Issue
Block a user