WIP: Implement admin dashboard
This commit is contained in:
1 parent
38d6fafcb2
commit
91f0f76ccc
15 files changed
+280
-4
No files matched your search
@@ -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()
|
||||
;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user