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.34] MorphTo inside ::with() calls relation inside morphable entity too. #13770

Closed
lelu85 opened this issue May 30, 2016 · 2 comments
Closed

Comments

@lelu85
Copy link
Contributor

lelu85 commented May 30, 2016

In that upgrade when you call a MorphTo inside the with model parameter like:

`
/**
* @var array
*/
protected $with = [
'OrderMorph'
];

/**
 * @return \Illuminate\Database\Eloquent\Relations\MorphTo
 */
public function OrderMorph()
{
    return $this->morphTo();
}

`

and the model is resolved, then it also calls the same relation OrderMorph inside the MorphTo entity so it leads to a Builder::MorphTo() not found.

If you revert to 5.2.33 it works.

@lelu85 lelu85 changed the title [5.2.34] [5.2.34] MorphTo inside ::with() calls relation inside morphable entity too. May 30, 2016
@phroggyy
Copy link
Contributor

This should be resolved in #13737.

@phroggyy
Copy link
Contributor

@lelu85 this is now in the latest tagged version, 5.2.35.

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

No branches or pull requests

3 participants