feat: extend teamer dashboard

This commit is contained in:
Björn Fromme
2023-12-12 18:04:01 +01:00
parent 8ff59b3068
commit b5781df8d9
16 changed files with 286 additions and 30 deletions
+9
View File
@@ -55,6 +55,15 @@ class ApplicationRepository extends ServiceEntityRepository
;
}
public function getPendingForTeamer(Teamer $teamer, int $limit = 5): array
{
return $this
->getPendingForTeamerQuery($teamer)
->setMaxResults($limit)
->getResult()
;
}
public function getCurrentByAssignment(Assignment $assignment): array
{
$qb = $this->createQueryBuilder('application');