Skip to content

Commit

Permalink
Merge pull request #3504 from DavidBruchmann/master
Browse files Browse the repository at this point in the history
fix #3479 (typos in example-code in QueryBuilder)
  • Loading branch information
morozov authored Apr 4, 2019
2 parents b4d1015 + e555e16 commit 799085f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Doctrine/DBAL/Query/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public function addSelect($select = null)
* <code>
* $qb = $conn->createQueryBuilder()
* ->delete('users', 'u')
* ->where('u.id = :user_id');
* ->where('u.id = :user_id')
* ->setParameter(':user_id', 1);
* </code>
*
Expand Down Expand Up @@ -873,8 +873,8 @@ public function groupBy($groupBy)
* $qb = $conn->createQueryBuilder()
* ->select('u.name')
* ->from('users', 'u')
* ->groupBy('u.lastLogin');
* ->addGroupBy('u.createdAt')
* ->groupBy('u.lastLogin')
* ->addGroupBy('u.createdAt');
* </code>
*
* @param mixed $groupBy The grouping expression.
Expand Down

0 comments on commit 799085f

Please sign in to comment.