PHP Интерфейс Storm\Core\Mapping\ICollectionPropertyToManyRelationMapping

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

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

Метод Описание
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