[PR #86] Now findByOne really retrieve only one entity adding limit to query #7694

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

Original Pull Request: https://github.com/doctrine/orm/pull/86

State: closed
Merged: Yes


For me it's stupidity when doctrine make "select * from" query then in php return only one entity. Name of the function says' one! So why doctrine is torturing mysql (in my project it try to retrive ~300k records and then return only one...)

**Original Pull Request:** https://github.com/doctrine/orm/pull/86 **State:** closed **Merged:** Yes --- For me it's stupidity when doctrine make "select \* from" query then in php return only one entity. Name of the function says' one! So why doctrine is torturing mysql (in my project it try to retrive ~300k records and then return only one...)
admin added the pull-request label 2026-01-22 15:56:23 +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#7694