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