Skip to content

Commit

Permalink
Merge pull request #2818 from Dormilich/Dormilich-patch-2814
Browse files Browse the repository at this point in the history
fixing issue #2814
  • Loading branch information
Ocramius authored Aug 18, 2017
2 parents 49bf43b + 6899040 commit 6fdfcab
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 @@ -540,7 +540,7 @@ public function delete($delete = null, $alias = null)
* <code>
* $qb = $conn->createQueryBuilder()
* ->update('users', 'u')
* ->set('u.password', md5('password'))
* ->set('u.last_login', 'NOW()')
* ->where('u.id = ?');
* </code>
*
Expand Down Expand Up @@ -733,7 +733,7 @@ public function rightJoin($fromAlias, $join, $alias, $condition = null)
* <code>
* $qb = $conn->createQueryBuilder()
* ->update('users', 'u')
* ->set('u.password', md5('password'))
* ->set('u.last_login', 'NOW()')
* ->where('u.id = ?');
* </code>
*
Expand Down Expand Up @@ -765,7 +765,7 @@ public function set($key, $value)
* $or->add($qb->expr()->eq('u.id', 2));
*
* $qb->update('users', 'u')
* ->set('u.password', md5('password'))
* ->set('u.last_login', 'NOW()')
* ->where($or);
* </code>
*
Expand Down

0 comments on commit 6fdfcab

Please sign in to comment.