HasNestedRelations implements nested relation chains

Protected Properties

protected array $manageIds

manageIds provided by the relationship chain

Protected Methods

protected initNestedRelation()

protected initNestedRelation($model, $parentField): void

initNestedRelation checks the extra configuration for a relationship chain and binds the manage forms to the controller, which may contain additional relation definitions via the relation form widget.

protected makeNestedRelationModel()

protected makeNestedRelationModel($model, $field): void

makeNestedRelationModel resolves a relation based on a nested field name E.g: model[relation1][relation2] → $model->relation1()->relation2()