Backend\FormWidgets\Repeater\HasRelationStore

Overview

HasRelationStore contains logic for related repeater items


Protected Methods

protected createRelationAtIndex()

protected createRelationAtIndex($index, $groupCode = null): void

createRelationAtIndex prepares an empty model and adds it to the index

protected deleteRelationAtIndex()

protected deleteRelationAtIndex($index): void

protected duplicateRelationAtIndex()

protected duplicateRelationAtIndex($fromIndex, $index, $groupCode = null): void

protected getGroupCodeFromRelation()

protected getGroupCodeFromRelation($model): void

protected getLoadValueFromRelation()

protected getLoadValueFromRelation(): void

protected getModelFromIndex()

protected getModelFromIndex($index): void

getModelFromIndex returns the model at a given index

protected getRelationQuery()

protected getRelationQuery(): void

protected processRelationMode()

protected processRelationMode(): void

protected processSaveForRelation()

protected processSaveForRelation($value): void

protected processSortOrderForSortable()

protected processSortOrderForSortable($model, $sortOrder): void 

protected setGroupCodeOnRelation()

protected setGroupCodeOnRelation($model, $groupCode): void