sort and filter menuitems in aliasof select
This commit is contained in:
parent
9781bd561f
commit
0ce09437a3
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ final class MenuItemType extends AbstractType
|
|||
'query_builder' => static fn(MenuItemRepository $repository): QueryBuilder => $repository
|
||||
->createQueryBuilder('m')
|
||||
->where('m.foodVendor = :vendorId')
|
||||
->andWhere('m.deletedAt IS NULL')
|
||||
->orderBy('m.name', 'ASC')
|
||||
->setParameter(':vendorId', $vendorId, UlidType::NAME),
|
||||
])
|
||||
;
|
||||
|
|
Loading…
Add table
Reference in a new issue