Question

in an admin generator created module I added a fictif field using a partial. but apparentely the "sort" link (exists on every field name to set the sorting) can I make symfony show a link for sorting on this field?

Was it helpful?

Solution

In symfony, it's a lot of pain for such an apparently easy thing. I haven't tested any way, but I can point you to some promising resources.

Look at this topic:

symfony doctrine admin generator sort by virtual columns

User uses DbFinderPlugin.

Here you have a tutorial that tell how to achieve this in another way, and another tutorial.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top