Skip to content

Now findByOne really retrieve only one entity adding limit to query#86

Merged
guilhermeblanco merged 2 commits intodoctrine:masterfrom
kwiateusz:findByOne-patch
Jul 21, 2011
Merged

Now findByOne really retrieve only one entity adding limit to query#86
guilhermeblanco merged 2 commits intodoctrine:masterfrom
kwiateusz:findByOne-patch

Conversation

@kwiateusz
Copy link
Contributor

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...)

guilhermeblanco added a commit that referenced this pull request Jul 21, 2011
Now findByOne really retrieve only one entity adding limit to query
@guilhermeblanco guilhermeblanco merged commit 01d6ec3 into doctrine:master Jul 21, 2011
guilhermeblanco added a commit that referenced this pull request Jul 22, 2011
@kwiateusz
Copy link
Contributor Author

What was broken? I'll try to make this works properly

@guilhermeblanco
Copy link
Member

This fix breaks our Proxy support and makes our suite throws an E_FATAL. I had to revert it because it broke many other tests too.

You can try to implement a better patch by locally applying your fix and running phpunit on root got clone of orm.

Cheers,

guilhermeblanco added a commit that referenced this pull request Jan 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants