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 morphTo eager loading #14190

Merged
merged 1 commit into from
Jul 1, 2016
Merged

[5.2] Fix morphTo eager loading #14190

merged 1 commit into from
Jul 1, 2016

Conversation

acasar
Copy link
Contributor

@acasar acasar commented Jun 30, 2016

Fixes #14119

In short - this PR fixes eager loading of multi level morphTo relationships. Took me quite a while to figure this one out :). Similar fix will need to be applied to 5.1, but since the code is a lot different I'll do that later in another PR.

@@ -710,7 +710,7 @@ public function getRelation($name)
* @param string $relation
* @return array
*/
public function nestedRelations($relation)
protected function nestedRelations($relation)
Copy link
Contributor Author

@acasar acasar Jun 30, 2016

Choose a reason for hiding this comment

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

This method has been public for a few weeks now, but I think it's better to change it back to protected since it's not part of the public API.

@taylorotwell taylorotwell merged commit ee7b8cf into laravel:5.2 Jul 1, 2016
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