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

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

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

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

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

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

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

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

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