Browse Source

Merge pull request #9379 from cakephp/issue-9372

Clarify Query::from() usage.
José Lorenzo Rodríguez 9 years ago
parent
commit
a48e247d65
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Database/Query.php

+ 3 - 1
src/Database/Query.php

@@ -422,7 +422,9 @@ class Query implements ExpressionInterface, IteratorAggregate
      * $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
+     *  passed as an array of strings, array of expression objects, or a single string. See
+     *  the examples above for the valid call types.
      * @param bool $overwrite whether to reset tables with passed list or not
      * @return $this
      */