From e555e16fed3de782afcb7e363b6169f42d3755ff Mon Sep 17 00:00:00 2001 From: David Bruchmann Date: Thu, 4 Apr 2019 08:20:21 +0700 Subject: [PATCH] fix #3479 (typos in example-code in QueryBuilder) fix two typos in QueryBuilder, on of them reported in #3479 --- lib/Doctrine/DBAL/Query/QueryBuilder.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/DBAL/Query/QueryBuilder.php b/lib/Doctrine/DBAL/Query/QueryBuilder.php index 1c08db193dd..50c08655ff3 100644 --- a/lib/Doctrine/DBAL/Query/QueryBuilder.php +++ b/lib/Doctrine/DBAL/Query/QueryBuilder.php @@ -504,7 +504,7 @@ public function addSelect($select = null) * * $qb = $conn->createQueryBuilder() * ->delete('users', 'u') - * ->where('u.id = :user_id'); + * ->where('u.id = :user_id') * ->setParameter(':user_id', 1); * * @@ -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'); * * * @param mixed $groupBy The grouping expression.