Merge pull request #12196 from WrDX/WrDX-patch-order-param-array

The $order param allows both a string and array
This commit is contained in:
Mark Story 2018-06-06 12:05:28 -04:00 committed by GitHub
commit afe7225c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1648,7 +1648,7 @@ class Model extends CakeObject implements CakeEventListener {
*
* @param string $name The name of the field to get.
* @param array $conditions SQL conditions (defaults to NULL).
* @param string $order SQL ORDER BY fragment.
* @param string|array $order SQL ORDER BY fragment.
* @return string|false Field content, or false if not found.
* @link https://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-field
*/