PHP Интерфейс Storm\Core\Relational\IToManyRelation

Автор: Elliot Levin ([email protected])
Наследование: extends Storm\Core\Relational\IRelation
Показать файл Открыть проект

Открытые методы

Метод Описание
MapParentKeysToRelatedRows ( array $ParentRows, array $RelatedRows ) : ResultRow[] Map the parent rows to their respective related rows
Persist ( Transaction $Transaction, ResultRow $ParentData, array $RelationshipChanges ) : void Sync the supplied relationship changes by persisting to/discarding from the transaction

Описание методов

MapParentKeysToRelatedRows() публичный Метод

Map the parent rows to their respective related rows
public MapParentKeysToRelatedRows ( array $ParentRows, array $RelatedRows ) : ResultRow[]
$ParentRows array The parent rows
$RelatedRows array The related rows
Результат ResultRow[] The array containing the parent rows indexed by their parents key

Persist() публичный Метод

Sync the supplied relationship changes by persisting to/discarding from the transaction
public Persist ( Transaction $Transaction, ResultRow $ParentData, array $RelationshipChanges ) : void
$Transaction Transaction The transaction to persist to
$ParentData ResultRow The parent result row
$RelationshipChanges array The mapped relationship changes
Результат void