WIP: Implement admin dashboard

This commit is contained in:
Björn Fromme committed 2023-10-22 17:05:43 +02:00
1 parent 38d6fafcb2
commit 91f0f76ccc
15 files changed
+280 -4

No files matched your search

+13
View File
@@ -65,4 +65,17 @@ class AvailabilityRepository extends ServiceEntityRepository
->getResult()
;
}
public function getNew(int $limit = 5): array
{
$qb = $this->createQueryBuilder('availability');
return $qb
->where($qb->expr()->isNotNull('availability.owner'))
->orderBy('availability.createdAt', 'DESC')
->setMaxResults($limit)
->getQuery()
->getResult()
;
}
}