mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #12319] Unify memberOf method signature in Criteria class #13687
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/12319
Author: @vlastv
Created: 12/3/2025
Status: 🔄 Open
Base:
3.7.x← Head:uniform-memberof📝 Commits (1)
d0c0525Uniform memberOf expression builder📊 Changes
2 files changed (+9 additions, -1 deletions)
View changed files
📝
src/Query/QueryExpressionVisitor.php(+7 -1)📝
tests/Tests/ORM/Query/QueryExpressionVisitorTest.php(+2 -0)📄 Description
Standardized the
memberOfmethod inCriteriaclass to match the signature pattern of other methods.Changed
memberOfparameter order to('field', 'value')like otherCriteriamethods. Previously it used(':parameter', 'alias.field')which was inconsistent.Consistency across the
CriteriaAPI. Better developer experience when usingQueryBuilder. Follows principle of least surprise.Fully backward compatible.
Example:
Reopening: previous PR https://github.com/doctrine/orm/pull/11981 closed due to branch deletion
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.