EasyAdminBundle
EasyAdminBundle copied to clipboard
allow to add custom query params for autocompleteEnpointUrl
Allow to add custom query params for autocomplete in AssociationField.
yield AssociationField::new('something')->autocomplete(['key' => 'value']);
What is the usecase?
@michaelKaefer Is usefull if you need to filter your autocomplete results. Example: If you have User entity, and in one page you need enabled users, in second page you need womans, in third you need admin users. In this case you can pass the needed filter.
I think you can already use AssociationField::new('...')->setQueryBuilder(...)
for this or am I missing something?