From a57b4c3432c7b6715fdacee8fc8dd26b4c639586 Mon Sep 17 00:00:00 2001 From: Wouter Date: Wed, 6 Jun 2018 12:10:53 +0200 Subject: [PATCH] The $order param allows both a string and array --- lib/Cake/Model/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index cb0b6ef83..cd5300378 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -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 */