Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[5.2] Fix morphTo eager loading#14190

Merged
taylorotwell merged 1 commit into
laravel:5.2from
acasar:fix-eager-loading
Jul 1, 2016
Merged

[5.2] Fix morphTo eager loading#14190
taylorotwell merged 1 commit into
laravel:5.2from
acasar:fix-eager-loading

Conversation

@acasar
Copy link
Copy Markdown
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.

* @return array
*/
public function nestedRelations($relation)
protected function nestedRelations($relation)
Copy link
Copy Markdown
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