remove unneeded test
All checks were successful
/ ls (pull_request) Successful in 30s

add order item stuff
This commit is contained in:
lubiana 2024-06-14 18:48:32 +02:00
parent 68b4096bb0
commit 814dc4a41b
No known key found for this signature in database
11 changed files with 175 additions and 113 deletions

View file

@ -23,4 +23,19 @@ final class FoodOrderRepository extends ServiceEntityRepository
$this->getEntityManager()
->flush();
}
/**
* @return FoodOrder[]
*/
public function findLatestEntries(int $limit = 10): array
{
$qb = $this->createQueryBuilder('alias');
$qb->orderBy('alias.createdAt', 'DESC');
$qb->setMaxResults($limit);
$query = $qb->getQuery();
return $query->getResult();
}
}