WIP: Implement application process

This commit is contained in:
Björn Fromme
2023-10-10 17:50:50 +02:00
parent 6910ab6134
commit 7084e1528e
11 changed files with 225 additions and 6 deletions
+16
View File
@@ -3,6 +3,7 @@
namespace App\Repository;
use App\Entity\Application;
use App\Entity\Teamer;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\ORM\Query;
use Doctrine\Persistence\ManagerRegistry;
@@ -35,4 +36,19 @@ class ApplicationRepository extends ServiceEntityRepository
->getQuery()
;
}
public function getPendingForTeamerQuery(Teamer $teamer): Query
{
$qb = $this->createQueryBuilder('application');
return $qb
->select('application', 'assignment', 'destination', 'job_profile')
->innerJoin('application.assignment', 'assignment')
->innerJoin('assignment.destination', 'destination')
->innerJoin('assignment.jobProfile', 'job_profile')
->where($qb->expr()->eq('application.teamer', ':teamer'))
->setParameter('teamer', $teamer)
->getQuery()
;
}
}