Skip to content

Commit

Permalink
Merge pull request #17670 from joggee-fr/patch-2
Browse files Browse the repository at this point in the history
Update documentation for SelectQuery::select()
  • Loading branch information
othercorey committed Apr 19, 2024
2 parents 8f56e52 + 3ffe80b commit d9f11e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Query/SelectQuery.php
Expand Up @@ -146,7 +146,7 @@ public function all(): iterable
* $query->select('id', true); // Resets the list: SELECT id
* $query->select(['total' => $countQuery]); // SELECT id, (SELECT ...) AS total
* $query->select(function ($query) {
* return ['article_id', 'total' => $query->count('*')];
* return ['article_id', 'total' => $query->func()->count('*')];
* })
* ```
*
Expand Down

0 comments on commit d9f11e6

Please sign in to comment.