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

저자: 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.
GetEntityProperty ( ) : Object\IEntityProperty The mapped entity property.
GetToOneRelation ( ) : Storm\Core\Relational\IToOneRelation The mapped to one relation.
Persist ( Transaction $Transaction, ResultRow $ParentData, RelationshipChange $RelationshipChange ) : void This method should be implemented such that it saves the relationship 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

GetEntityProperty() 공개 메소드

The mapped entity property.
public GetEntityProperty ( ) : Object\IEntityProperty
리턴 Object\IEntityProperty

GetToOneRelation() 공개 메소드

The mapped to one relation.
public GetToOneRelation ( ) : Storm\Core\Relational\IToOneRelation
리턴 Storm\Core\Relational\IToOneRelation

Persist() 공개 메소드

This method should be implemented such that it saves the relationship between the parent data and related data in the supplied transaction.
public Persist ( Transaction $Transaction, ResultRow $ParentData, RelationshipChange $RelationshipChange ) : void
$Transaction Storm\Core\Relational\Transaction The transaction context
$ParentData Storm\Core\Relational\ResultRow The column data of the parent
$RelationshipChange Storm\Core\Relational\RelationshipChange 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