mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进
This commit is contained in:
@@ -52,7 +52,7 @@ class MorphTo extends Relation
|
|||||||
{
|
{
|
||||||
$morphType = $this->morphType;
|
$morphType = $this->morphType;
|
||||||
$model = $this->parseModel($this->parent->$morphType);
|
$model = $this->parseModel($this->parent->$morphType);
|
||||||
return (new $model)->db()->getModel();
|
return (new $model);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user