Hi All,
I want to use something like myTable::$app->find()->OrderBy( Field (A,[1,2,3,0])->all();.
How can I do? Thanks.
Hi All,
I want to use something like myTable::$app->find()->OrderBy( Field (A,[1,2,3,0])->all();.
How can I do? Thanks.
What do [1,2,3,4] stand for?? Do you want to ordre by multiples fields?
If it is the case you can try this: