我有多個Things
在AnotherThing
我現在想訂購他們在我的編輯操作在我AnotherThing Controller
- 我可以訪問Things
就好在我的編輯,但我想排序他們不同(不是他們的ID),例如Things.pos
訂單「遏制」 CakePHP中3.X型號
這裏最好的做法是什麼?我試過
public $hasMany = array(
'Thing' => array(
'order' => 'Thing.pos DESC'
)
);
但沒有什麼變化。任何想法?