Skip to content

Commit

Permalink
Merge branch '2.10.x' into 2.11.x
Browse files Browse the repository at this point in the history
* 2.10.x:
  Fix WhereInWalker description to better describe the behaviour of this class (doctrine#9268)
  • Loading branch information
derrabus committed Jan 9, 2022
2 parents cd2aa48 + b7d8229 commit 656f881
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use function reset;

/**
* Replaces the whereClause of the AST with a WHERE id IN (:foo_1, :foo_2) equivalent.
* Appends a condition "id IN (:foo_1, :foo_2)" to the whereClause of the AST.
*/
class WhereInWalker extends TreeWalkerAdapter
{
Expand All @@ -43,9 +43,7 @@ class WhereInWalker extends TreeWalkerAdapter
public const PAGINATOR_ID_ALIAS = 'dpid';

/**
* Replaces the whereClause in the AST.
*
* Generates a clause equivalent to WHERE IN (:dpid_1, :dpid_2, ...)
* Appends a condition equivalent to "WHERE IN (:dpid_1, :dpid_2, ...)" to the whereClause of the AST.
*
* The parameter namespace (dpid) is defined by
* the PAGINATOR_ID_ALIAS
Expand Down

0 comments on commit 656f881

Please sign in to comment.