$parent
$parent
Class Relation
$model : \think\Model
$query : \think\db\Query
__construct(\think\Model $parent, string $model, string $through, string $foreignKey, string $throughKey, string $localKey) : mixed
构造函数
\think\Model | $parent | 上级模型对象 |
string | $model | 模型名 |
string | $through | 中间模型名 |
string | $foreignKey | 关联外键 |
string | $throughKey | 关联外键 |
string | $localKey | 关联主键 |