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

[5.2] Fix chained eager loading #13967

Merged
merged 1 commit into from
Jun 13, 2016
Merged

[5.2] Fix chained eager loading #13967

merged 1 commit into from
Jun 13, 2016

Conversation

acasar
Copy link
Contributor

@acasar acasar commented Jun 13, 2016

This fixes a bug in eager loading chained morphedTo relationships (i.e model A eager loads Model B, model B eager loads Model C) - reported on Slack.

I also added another integration test for this scenario and extracted seedData helper function to clean things up a little.

@GrahamCampbell
Copy link
Member

Please send to 5.1, I think?

@acasar
Copy link
Contributor Author

acasar commented Jun 13, 2016

@GrahamCampbell This particular issue is 5.2 only.

@GrahamCampbell
Copy link
Member

Right, I wasn't sure, so I didn't close it. Thanks for clarifying. ;)

@GrahamCampbell
Copy link
Member

👍

@taylorotwell taylorotwell merged commit 14c808d into laravel:5.2 Jun 13, 2016
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.

3 participants