PHP 인터페이스 Storm\Core\Relational\IToOneRelation

저자: Elliot Levin ([email protected])
상속: extends Storm\Core\Relational\IRelation
파일 보기 프로젝트 열기: timetoogo/penumbra

공개 메소드들

메소드 설명
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