-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Hello !
I am trying to filter on current locale translations but i don't find any way to do that..
This is working for filter on all translations:
#[ApiFilter(SearchFilter::class, properties: ['translations.name'])]
I also want to order my list by current translation name:
'domains_list' => [ // @todo order
'method' => 'GET',
'path' => '/domains',
'access_control' => 'is_granted(\''.Account::ROLE_USER.'\')',
'normalization_context' => ['groups' => ['domains:list', 'domains:translations']],
'order' => ['translations.name' => 'ASC'], // <- here i want to order on current locale
],
Someone have any idea to do that without rewriting all filter class ?
Thanks :)
Metadata
Metadata
Assignees
Labels
No labels