PHP Class Storm\Drivers\Base\Relational\Relations\ToManyRelationBase

Inheritance: extends KeyedRelation, implements Storm\Core\Relational\IToManyRelation
ファイルを表示 Open project: timetoogo/penumbra Class Usage Examples

Public Methods

Method Description
MapParentKeysToRelatedRows ( array $ParentRows, array $RelatedRows )
Persist ( Transaction $Transaction, ResultRow $ParentData, array $RelationshipChanges )

Protected Methods

Method Description
GroupRelatedRowsByParentKeys ( array &$MappedRelatedRows, ForeignKey $ForeignKey, array $ParentRows, array $RelatedRows )
GroupRowsByColumnValues ( array $ResultRows, array $Columns )
MapParentRowKeysToGroupedRelatedRows ( array &$MappedRelatedRows, array $ParentRows, array $MapByColumns, array $GroupedRelatedRows )
PersistIdentifyingRelationship ( Transaction $Transaction, ResultRow $ParentRow, array $ChildRows )

Method Details

GroupRelatedRowsByParentKeys() abstract protected method

abstract protected GroupRelatedRowsByParentKeys ( array &$MappedRelatedRows, ForeignKey $ForeignKey, array $ParentRows, array $RelatedRows )
$MappedRelatedRows array
$ForeignKey Storm\Drivers\Base\Relational\Traits\ForeignKey
$ParentRows array
$RelatedRows array

GroupRowsByColumnValues() final protected method

final protected GroupRowsByColumnValues ( array $ResultRows, array $Columns )
$ResultRows array
$Columns array

MapParentKeysToRelatedRows() final public method

final public MapParentKeysToRelatedRows ( array $ParentRows, array $RelatedRows )
$ParentRows array
$RelatedRows array

MapParentRowKeysToGroupedRelatedRows() final protected method

final protected MapParentRowKeysToGroupedRelatedRows ( array &$MappedRelatedRows, array $ParentRows, array $MapByColumns, array $GroupedRelatedRows )
$MappedRelatedRows array
$ParentRows array
$MapByColumns array
$GroupedRelatedRows array

Persist() public method

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

PersistIdentifyingRelationship() abstract protected method

abstract protected PersistIdentifyingRelationship ( Transaction $Transaction, ResultRow $ParentRow, array $ChildRows )
$Transaction Storm\Core\Relational\Transaction
$ParentRow Storm\Core\Relational\ResultRow
$ChildRows array