You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there support for polymorphic relationships? I see there is a check in PathsCommand for polymorphic relationships. However when I run the command on my model it doesn't get past line 159 as the related model is an instance of the ancestor.
I have
namespaceApp\Models;
useApp\Models\Eloquent;
useIverberk\Larasearch\Traits\SearchableTrait;
class QuoteRequest extends Eloquent
{
use SearchableTrait;
/** * @return \Illuminate\Database\Eloquent\Relations */publicfunctiondetails()
{
return$this->morphTo();
}
}
This is a tricky one. We actually do use it on polymorphic relations but in our case we would have the searchabletrait on the details class. The path would start looping since the quoterequest would be pointing to itself every time. Not sure what the solution would be here...I'll take some time to think about it and see if I can come up with something.
Is there support for polymorphic relationships? I see there is a check in PathsCommand for polymorphic relationships. However when I run the command on my model it doesn't get past line 159 as the related model is an instance of the ancestor.
I have
and
but the path command only returns
The text was updated successfully, but these errors were encountered: