Allow EntityRepository::FindBy to accept a Criteria object or array. #6134

Open
opened 2026-01-22 15:27:25 +01:00 by admin · 0 comments
Owner

Originally created by @PyRowMan on GitHub (Dec 14, 2018).

Feature Request

In order to do advanced where clauses select (greaterThan, lesserThan, equals...).

Would it be possible to allow the method EntityRepository::FindBy to take a Criteria object OR an array of params.

It would be easier to perform some advanced where clauses.

Q A
New Feature yes
RFC yes
BC Break no

Summary

Since I don't usually work inside the doctrine project, I don't really know what are the impacts of this request. I saw that there is one or two interfaces to modify, and some recovering parameter way, but this is only for the MySQL driver.

Originally created by @PyRowMan on GitHub (Dec 14, 2018). ### Feature Request In order to do advanced where clauses select (greaterThan, lesserThan, equals...). Would it be possible to allow the method EntityRepository::FindBy to take a Criteria object OR an array of params. It would be easier to perform some advanced where clauses. | Q | A |------------ | ------ | New Feature | yes | RFC | yes | BC Break | no #### Summary Since I don't usually work inside the doctrine project, I don't really know what are the impacts of this request. I saw that there is one or two interfaces to modify, and some recovering parameter way, but this is only for the MySQL driver.
admin added the Improvement label 2026-01-22 15:27:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6134