8000 Do not defer eager collection loading when in iteration context by bobvandevijver · Pull Request #11082 · doctrine/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Do not defer eager collection loading when in iteration context #11082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

bobvandevijver
Copy link
Contributor
@bobvandevijver bobvandevijver commented Nov 23, 2023

The test shows that eager collection loading is broken when used in conjunction with iterating over a query result. I also added a proposed fix to not defer eager collection loading when the iteration hint has been set.

Fixes #11081

This test show that eager collections are broken when used in conjuction
with iterating over a result.
@bobvandevijver bobvandevijver changed the title Failing test for #11081 #11081: Do not defer eager collection loading when in iteration context Nov 23, 2023
@greg0ire greg0ire added the Bug label Nov 23, 2023
@greg0ire greg0ire changed the title #11081: Do not defer eager collection loading when in iteration context Do not defer eager collection loading when in iteration context Nov 23, 2023
@greg0ire greg0ire requested a review from beberlei November 23, 2023 17:51
@bobvandevijver
Copy link
Contributor Author

@beberlei Any chance you can take a look at this? This is blocking our upgrade to 2.17

@bobvandevijver
Copy link
Contributor Author

@greg0ire / @beberlei This is still blocking and quite hefty bug for iterators.. any chance this can be looked at?

SenseException
< 8000 /div>
@greg0ire greg0ire added this to the 2.17.3 milestone Jan 10, 2024
@greg0ire greg0ire merged commit a32578b into doctrine:2.17.x Jan 10, 2024
@greg0ire
Copy link
Member

Thanks @bobvandevijver !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collections data loaded twice when using EAGER loading in combination with iterables
3 participants
0