Skip to content
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

Consider usage of setFetchMode when checking for simultaneous usage of fetch-mode EAGER and WITH condition #11445

Merged
merged 1 commit into from
May 30, 2024

Conversation

aprat84
Copy link
Contributor

@aprat84 aprat84 commented May 6, 2024

Fixes #11128.
Copy of #11174, author can't complete it right now.

Should be merged up to v3.1

@aprat84
Copy link
Contributor Author

aprat84 commented May 6, 2024

@beberlei dunno if u prefer to continue here and close #11174 or wait for the author...

@aprat84
Copy link
Contributor Author

aprat84 commented May 10, 2024

Can this get a little more attention?
It's a fix for a BC introduced lately...

@aprat84 aprat84 changed the title Consider usage of setFetchMode when checking for simultaneous usage of fetch-mode EAGER and WITH condition [fix] Consider usage of setFetchMode when checking for simultaneous usage of fetch-mode EAGER and WITH condition May 10, 2024
@aprat84 aprat84 changed the title [fix] Consider usage of setFetchMode when checking for simultaneous usage of fetch-mode EAGER and WITH condition Consider usage of setFetchMode when checking for simultaneous usage of fetch-mode EAGER and WITH condition May 10, 2024
@greg0ire greg0ire requested a review from beberlei May 14, 2024 18:43
@krzysztof-ciszewski-tg
Copy link

Bumping since this is a big deal

greg0ire
greg0ire previously approved these changes May 23, 2024
SenseException
SenseException previously approved these changes May 23, 2024
Copy link
Member

@SenseException SenseException left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Footnote: The test method names are hard to understand in that class if you don't know the context.

@greg0ire greg0ire changed the base branch from 2.20.x to 2.19.x May 25, 2024 12:09
@greg0ire greg0ire dismissed stale reviews from SenseException and themself May 25, 2024 12:09

The base branch was changed.

@greg0ire
Copy link
Member

Retargeting since this is a bugfix.

…f fetch-mode EAGER and WITH condition.

This fixes a bug that arises when an entity relation is mapped with
fetch-mode EAGER but setFetchMode LAZY (or anything that is not EAGER)
has been used on the query. If the query use WITH condition, an
exception is incorrectly raised (Associations with fetch-mode=EAGER may
not be using WITH conditions).

Fixes doctrine#11128

Co-Authored-By: Albert Prat <albert.prat@interactiu.cat>
@ottaviano
Copy link

Thank you for this fix, @Abbraxar & @aprat84 👍

@greg0ire greg0ire added this to the 2.19.6 milestone May 30, 2024
@greg0ire greg0ire merged commit e063926 into doctrine:2.19.x May 30, 2024
58 checks passed
@aprat84 aprat84 deleted the gh-11128 branch May 30, 2024 15:29
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.

6 participants