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