From b210849b953175629d50e0b4efd8336a9bed428f Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 10 Apr 2013 21:43:25 -0400 Subject: [PATCH] Expand doc blocks for Model::query() There were some undocumented options that had test cases. Refs #3748 --- lib/Cake/Model/Model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 61d2c7980..61952a13d 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -3045,7 +3045,11 @@ class Model extends Object implements CakeEventListener { /** * Returns a resultset for a given SQL statement. Custom SQL queries should be performed with this method. * - * @param string $sql,... SQL statement + * @param string $sql SQL statement + * @param boolean|array $params Either a boolean to control query caching or an array of parameters + * for use with prepared statement placeholders. + * @param boolean $cache If $params is provided, a boolean flag for enabling/disabled + * query caching. * @return mixed Resultset array or boolean indicating success / failure depending on the query executed * @link http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-query */