mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #86] [MERGED] Now findByOne really retrieve only one entity adding limit to query #7688
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/86
Author: @kwiateusz
Created: 7/21/2011
Status: ✅ Merged
Merged: 7/21/2011
Merged by: @guilhermeblanco
Base:
master← Head:findByOne-patch📝 Commits (2)
0e6121eNow findByOne really retrieve only one entity adding limit to query570799bRestoring the missing comment📊 Changes
2 files changed (+4 additions, -3 deletions)
View changed files
📝
lib/Doctrine/ORM/EntityRepository.php(+1 -1)📝
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(+3 -2)📄 Description
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...)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.