__construct()
__construct(\think\Model $parent, string $model, string $table, string $foreignKey, string $localKey) : mixed
构造函数
Parameters
\think\Model |
$parent |
上级模型对象
|
string |
$model |
模型名
|
string |
$table |
中间表名
|
string |
$foreignKey |
关联模型外键
|
string |
$localKey |
当前模型关联键
|
Returns
mixed
—