php - CakePHP: is there a way to make every find('list') return an array ordered? -


i'd every model->find('list') return array ordered $displayfield set on model. there way beyond set 'order' => 'model.display_field asc' on every find call?

yes, set $order in model.

http://book.cakephp.org/2.0/en/models/model-attributes.html#order


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -