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
Copy file name to clipboardExpand all lines: src/DataAccess/Criteria/Criteria.php
+87-1Lines changed: 87 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ class Criteria
51
51
*/
52
52
public$PreparedParameters;
53
53
/**
54
-
* @var array A list of [field, bool] tuples, where the second item determines whether the order should be ascending.
54
+
* @var array A list of [field, bool] tuples, where the second item determines whether the order should be ascending OR [OrderByMultipleFieldOperator, fields[], bool].
55
55
*/
56
56
public$OrderingFields;
57
57
/**
@@ -95,6 +95,23 @@ public function orderBy($field)
95
95
return$this;
96
96
}
97
97
98
+
/**
99
+
* Creates a ORDER BY (field1 OPERATOR field2 OPERATOR field3 ...).
100
+
*
101
+
* @param OrderByMultipleFieldOperator $multipleFieldOperator The operator that will be put between all the fields.
102
+
* @param string[] $fields The fields.
103
+
* @return Criteria The same criteria, so that you can chain orderBy and thenBy clauses.
0 commit comments