Search code examples
phpsymfony1doctrineadmin-generator

Symfony Admin generator: sort on non existing field(in partial)


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?


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.