PHP Interface Storm\Core\Mapping\IEntityPropertyToOneRelationMapping

Author: Elliot Levin ([email protected])
Inheritance: extends Storm\Core\Mapping\IPropertyMapping
Afficher le fichier Open project: timetoogo/penumbra

Méthodes publiques

Méthode Description
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.

Method Details

AddToRelationalRequest() public méthode

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
Résultat void

GetEntityProperty() public méthode

The mapped entity property.
public GetEntityProperty ( ) : Object\IEntityProperty
Résultat Object\IEntityProperty

GetToOneRelation() public méthode

The mapped to one relation.
public GetToOneRelation ( ) : Storm\Core\Relational\IToOneRelation
Résultat Storm\Core\Relational\IToOneRelation

Persist() public méthode

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
Résultat void

Revive() public méthode

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
Résultat void