feat: keep rejected applications visible for teamer
This commit is contained in:
@@ -51,10 +51,17 @@ class ApplicationRepository extends ServiceEntityRepository
|
||||
->innerJoin('assignment.jobProfile', 'job_profile')
|
||||
->where($qb->expr()->andX(
|
||||
$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('status', Application::STATUS_REJECTED)
|
||||
->setParameter('today', new \DateTime())
|
||||
->getQuery()
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user