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.