WIP: Refactor application rejecting process
This commit is contained in:
@@ -23,7 +23,7 @@ class ApplicationRepository extends ServiceEntityRepository
|
||||
parent::__construct($registry, Application::class);
|
||||
}
|
||||
|
||||
public function getListQuery(): Query
|
||||
public function getPendingQuery(): Query
|
||||
{
|
||||
$qb = $this->createQueryBuilder('application');
|
||||
|
||||
@@ -33,6 +33,8 @@ class ApplicationRepository extends ServiceEntityRepository
|
||||
->innerJoin('assignment.destination', 'destination')
|
||||
->innerJoin('assignment.jobProfile', 'job_profile')
|
||||
->innerJoin('application.teamer', 'teamer')
|
||||
->where($qb->expr()->neq('application.status', ':status'))
|
||||
->setParameter('status', Application::STATUS_REJECTED)
|
||||
->getQuery()
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user