feat: keep rejected applications visible for teamer

This commit is contained in:
Björn Fromme
2024-07-01 11:59:11 +02:00
parent 9258d78902
commit 39d3749c9e
+8 -1
View File
@@ -51,10 +51,17 @@ class ApplicationRepository extends ServiceEntityRepository
->innerJoin('assignment.jobProfile', 'job_profile') ->innerJoin('assignment.jobProfile', 'job_profile')
->where($qb->expr()->andX( ->where($qb->expr()->andX(
$qb->expr()->eq('application.teamer', ':teamer'), $qb->expr()->eq('application.teamer', ':teamer'),
$qb->expr()->neq('application.status', ':status') $qb->expr()->orX(
$qb->expr()->neq('application.status', ':status'),
$qb->expr()->andX(
$qb->expr()->eq('application.status', ':status'),
$qb->expr()->gt('destination.dateFrom', ':today')
)
)
)) ))
->setParameter('teamer', $teamer) ->setParameter('teamer', $teamer)
->setParameter('status', Application::STATUS_REJECTED) ->setParameter('status', Application::STATUS_REJECTED)
->setParameter('today', new \DateTime())
->getQuery() ->getQuery()
; ;
} }