Symfony Admin generator: sort on non existing field(in partial)
-
30-04-2021 - |
質問
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?
解決
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.
所属していません StackOverflow