Skip to content
Permalink
Browse files

The $order param allows both a string and array

  • Loading branch information...
WrDX committed Jun 6, 2018
1 parent fc061a5 commit a57b4c3432c7b6715fdacee8fc8dd26b4c639586
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Model.php
@@ -1648,7 +1648,7 @@ public function read($fields = null, $id = null) {
*
* @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
*/

0 comments on commit a57b4c3

Please sign in to comment.
You can’t perform that action at this time.