Skip to content

Conversation

MariusJam
Copy link
Contributor

Q A
Branch? 3.2
Tickets Closes #5847
License MIT

In some cases, the EagerLoadingExtension misses some joins it should normally load eagerly. This happens when a *ToOne relationship shares the same inversedBy name than in the parent class. This PR aims to solve this problem and correctly eager join all to-one relationships than should be eager joined.

@soyuka soyuka changed the base branch from 3.2 to 3.1 November 24, 2023 14:08
@soyuka soyuka changed the base branch from 3.1 to 3.2 November 24, 2023 14:08
@soyuka
Copy link
Member

soyuka commented Nov 24, 2023

nice, can you target 3.1?

@MariusJam MariusJam force-pushed the fix/missing-eager-join branch from f70e42f to 8d29083 Compare November 27, 2023 08:28
@MariusJam MariusJam changed the base branch from 3.2 to 3.1 November 27, 2023 08:33
@MariusJam
Copy link
Contributor Author

It's done

@soyuka soyuka merged commit 9848bd4 into api-platform:3.1 Nov 27, 2023
@soyuka
Copy link
Member

soyuka commented Nov 27, 2023

thanks @MariusJam

soyuka added a commit to soyuka/core that referenced this pull request Nov 27, 2023
@soyuka
Copy link
Member

soyuka commented Nov 27, 2023

Hi, it happens I have a few tests in error with your patch, I reverted but I think it'd still be a good patch if you can take another look (ci is green at #6000)

soyuka added a commit that referenced this pull request Nov 27, 2023
MariusJam added a commit to MariusJam/core that referenced this pull request Nov 27, 2023
MariusJam added a commit to MariusJam/core that referenced this pull request Nov 28, 2023
MariusJam added a commit to MariusJam/core that referenced this pull request Nov 28, 2023
soyuka pushed a commit that referenced this pull request Nov 29, 2023
* Revert "Revert "fix: missing eager joins on to-one relationships (#5992)"" This reverts commit dac49cb. * test: fix related dummies related tests * test: duplicate changes in mongoDB documents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants