Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels