开发者

symfony doctrine admin generator sort by virtual columns

开发者 https://www.devze.com 2023-02-09 02:58 出处:网络
I\'m working with the Sym开发者_JAVA百科fony doctrine admin generator. I\'ve added a couple of virtual columns as detailed on this page http://www.symfony-project.org/jobeet/1_4/Doctrine/en/12

I'm working with the Sym开发者_JAVA百科fony doctrine admin generator.

I've added a couple of virtual columns as detailed on this page http://www.symfony-project.org/jobeet/1_4/Doctrine/en/12

What I want to be able to do is sort my list based on those virtual columns.

http://redotheweb.com/2008/09/25/sorting-by-custom-column-in-the-symfony-admin-generator/

That is how to do it with the Propel plugin but that details the use of a "sort_method" configuration in the yaml generator file, no such configuration item exists for the Doctrine admin generator.

Just wonder if there is something I'm missing? Thanks


Looks like I need to use this plugin:

http://www.symfony-project.org/plugins/DbFinderPlugin

It's this plugin that gives the "sort_method" configuration ability.

Hmmm, seems like a lot of work for something as simple as sorting by a different column.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号