PHP 인터페이스 Storm\Core\Mapping\ICollectionPropertyToManyRelationMapping

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

공개 메소드들

메소드 설명
AddToRelationalRequest ( DomainDatabaseMap $DomainDatabaseMap, Request $RelationalRequest ) : void Adds any constraints and/or properties to the reqeuest required for loading the relation.
GetCollectionProperty ( ) : Object\ICollectionProperty The mapped collection property.
GetToManyRelation ( ) : Storm\Core\Relational\IToManyRelation The mapped to many relation.
Persist ( Transaction $Transaction, ResultRow $ParentData, array $RelationshipChanges ) : void This method should be implemented such that it saves the relationships between the parent data and related data in the supplied transaction.
Revive ( DomainDatabaseMap $DomainDatabaseMap, array $ResultRowArray, array $RevivalDataArray ) : void This method should be implemented such that it sets the revival data of the mapped property with the appropriate data to revive the related entity.

메소드 상세

AddToRelationalRequest() 공개 메소드

Adds any constraints and/or properties to the reqeuest required for loading the relation.
public AddToRelationalRequest ( DomainDatabaseMap $DomainDatabaseMap, Request $RelationalRequest ) : void
$DomainDatabaseMap DomainDatabaseMap The parent domain database map
$RelationalRequest Storm\Core\Relational\Request The request to map to
리턴 void

GetCollectionProperty() 공개 메소드

The mapped collection property.
public GetCollectionProperty ( ) : Object\ICollectionProperty
리턴 Object\ICollectionProperty

GetToManyRelation() 공개 메소드

The mapped to many relation.
public GetToManyRelation ( ) : Storm\Core\Relational\IToManyRelation
리턴 Storm\Core\Relational\IToManyRelation

Persist() 공개 메소드

This method should be implemented such that it saves the relationships between the parent data and related data in the supplied transaction.
public Persist ( Transaction $Transaction, ResultRow $ParentData, array $RelationshipChanges ) : void
$Transaction Storm\Core\Relational\Transaction The transaction context
$ParentData Storm\Core\Relational\ResultRow The column data of the parent
$RelationshipChanges array The change in the relationship state
리턴 void

Revive() 공개 메소드

This method should be implemented such that it sets the revival data of the mapped property with the appropriate data to revive the related entity.
public Revive ( DomainDatabaseMap $DomainDatabaseMap, array $ResultRowArray, array $RevivalDataArray ) : void
$DomainDatabaseMap DomainDatabaseMap The parent domain database map
$ResultRowArray array
$RevivalDataArray array
리턴 void