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