The $order param allows both a string and array

This commit is contained in:
Wouter 2018-06-06 12:10:53 +02:00 committed by GitHub
parent fc061a55c4
commit a57b4c3432
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
*/