Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Expand doc blocks for Model::query()
There were some undocumented options that had test cases.

Refs #3748
  • Loading branch information
markstory committed Apr 11, 2013
1 parent c77c7a7 commit b210849
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Cake/Model/Model.php
Expand Up @@ -3045,7 +3045,11 @@ public function isUnique($fields, $or = true) {
/**
* 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
*/
Expand Down

0 comments on commit b210849

Please sign in to comment.