From eac50e0b0ddb0c51f521462be7bed6056e863cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 11 Apr 2024 10:46:58 +0200 Subject: [PATCH] fix: exclude rejected applications from teamer dashboard --- src/Repository/ApplicationRepository.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Repository/ApplicationRepository.php b/src/Repository/ApplicationRepository.php index fdad510..cefcf8a 100644 --- a/src/Repository/ApplicationRepository.php +++ b/src/Repository/ApplicationRepository.php @@ -49,8 +49,12 @@ class ApplicationRepository extends ServiceEntityRepository ->innerJoin('application.assignment', 'assignment') ->innerJoin('assignment.destination', 'destination') ->innerJoin('assignment.jobProfile', 'job_profile') - ->where($qb->expr()->eq('application.teamer', ':teamer')) + ->where($qb->expr()->andX( + $qb->expr()->eq('application.teamer', ':teamer'), + $qb->expr()->neq('application.status', ':status') + )) ->setParameter('teamer', $teamer) + ->setParameter('status', Application::STATUS_REJECTED) ->getQuery() ; }