S
S
snezhanan2015-12-05 22:23:31
symfony
snezhanan, 2015-12-05 22:23:31

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

1 answer(s)
M
moondog, 2015-12-05
@snezhanan

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 question

Ask a Question

731 491 924 answers to any question