Skip to content

Commit

Permalink
Clarify Query::from() usage.
Browse files Browse the repository at this point in the history
Refs #9372
  • Loading branch information
markstory committed Aug 31, 2016
1 parent 8314c2f commit 22d75de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Database/Query.php
Expand Up @@ -422,7 +422,9 @@ public function modifier($modifiers, $overwrite = false)
* $query->from(['sub' => $countQuery]); // FROM (SELECT ...) sub
* ```
*
* @param array|\Cake\Database\ExpressionInterface|string $tables tables to be added to the list
* @param array|string $tables tables to be added to the list. This argument, can be
* a string, or an associative array of aliases and strings/expression objects. See
* the examples above for the valid call types.
* @param bool $overwrite whether to reset tables with passed list or not
* @return $this
*/
Expand Down

0 comments on commit 22d75de

Please sign in to comment.