PHP Class Storm\Drivers\Base\Mapping\Mappings\CollectionPropertyToManyRelationMapping

Inheritance: extends RelationshipPropertyRelationMapping, implements Storm\Core\Mapping\ICollectionPropertyToManyRelationMapping
Show file Open project: timetoogo/penumbra Class Usage Examples

Public Methods

Method Description
GetCollectionProperty ( ) : Storm\Core\Object\ICollectionProperty
GetToManyRelation ( ) : Storm\Core\Relational\IToManyRelation
Persist ( Transaction $Transaction, ResultRow $ParentData, array $RelationshipChanges )
__construct ( Storm\Core\Object\ICollectionProperty $CollectionProperty, Storm\Core\Relational\IToManyRelation $ToManyRelation )

Protected Methods

Method Description
MakeMultipleLazyRevivalData ( DomainDatabaseMap $DomainDatabaseMap, ResultRow $ParentData, callable $RevivalDataLoader )
MapParentRowKeysToRelatedRevivalDataArray ( DomainDatabaseMap $DomainDatabaseMap, array $ParentRows, array $RelatedRows )

Method Details

GetCollectionProperty() final public method

final public GetCollectionProperty ( ) : Storm\Core\Object\ICollectionProperty
return Storm\Core\Object\ICollectionProperty

GetToManyRelation() final public method

final public GetToManyRelation ( ) : Storm\Core\Relational\IToManyRelation
return Storm\Core\Relational\IToManyRelation

MakeMultipleLazyRevivalData() final protected method

final protected MakeMultipleLazyRevivalData ( DomainDatabaseMap $DomainDatabaseMap, ResultRow $ParentData, callable $RevivalDataLoader )
$DomainDatabaseMap Storm\Core\Mapping\DomainDatabaseMap
$ParentData Storm\Core\Relational\ResultRow
$RevivalDataLoader callable

MapParentRowKeysToRelatedRevivalDataArray() final protected method

final protected MapParentRowKeysToRelatedRevivalDataArray ( DomainDatabaseMap $DomainDatabaseMap, array $ParentRows, array $RelatedRows )
$DomainDatabaseMap Storm\Core\Mapping\DomainDatabaseMap
$ParentRows array
$RelatedRows array

Persist() public method

public Persist ( Transaction $Transaction, ResultRow $ParentData, array $RelationshipChanges )
$Transaction Storm\Core\Relational\Transaction
$ParentData Storm\Core\Relational\ResultRow
$RelationshipChanges array

__construct() public method

public __construct ( Storm\Core\Object\ICollectionProperty $CollectionProperty, Storm\Core\Relational\IToManyRelation $ToManyRelation )
$CollectionProperty Storm\Core\Object\ICollectionProperty
$ToManyRelation Storm\Core\Relational\IToManyRelation