Answer the question
In order to leave comments, you need to log in
How to filter values in configureListFields Sonata by a given parameter?
in configureListFields I get the value of the parameter by which I need to filter out unnecessary values from my List, leaving those that fit my conditions.
Answer the question
In order to leave comments, you need to log in
wat?
In configureListFields you only define the fields of the given model that will be displayed in the table.
If you need a filter on a list of objects, then override the configureDatagridFilters function. It will bring up the filter.
If you need to define a constant condition by which objects in the list will be displayed, then redefine the buildQuery function.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question