__construct()
__construct(\think\Model $parent, string $morphType, string $morphKey, array $alias = [], string $relation = null) : mixed
构造函数
Parameters
\think\Model |
$parent |
上级模型对象
|
string |
$morphType |
多态字段名
|
string |
$morphKey |
外键名
|
array |
$alias |
多态别名定义
|
string |
$relation |
关联名
|
Returns
mixed
—