You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ArraySource Datasource in the 2.0 branch on GitHub doesn't support arrays in 'order' query option.
Sample code:
// Works
var_dump( $this->ArrayModel->find('all', array('order'=>'field_name')) );
// Doesn't work
var_dump( $this->ArrayModel->find('all', array('order'=>array('field_name'=>'DESC'))) );
I believe the code responsible is in ArraySource.php, line 138, which checks if $queryData['order'][0] is a string, but does not bother to do anything if it's not.
The text was updated successfully, but these errors were encountered:
Created by David Lancea, 19th Oct 2011. (originally Lighthouse ticket #29):
The ArraySource Datasource in the 2.0 branch on GitHub doesn't support arrays in 'order' query option.
Sample code:
I believe the code responsible is in ArraySource.php, line 138, which checks if $queryData['order'][0] is a string, but does not bother to do anything if it's not.
The text was updated successfully, but these errors were encountered: