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

Inheritance: extends ToManyRelationBase
Afficher le fichier Open project: timetoogo/penumbra

Méthodes publiques

Méthode Description
AddConstraintToRequest ( Request $Request )
AddParentPredicateToRequest ( Request $Request, array $ParentRows )
GetJoinTable ( ) : JoinTable
GetOtherForeignKey ( ) : ForeignKey
GetRelationalParentColumns ( )
MapRelationalParentDataToRelatedData ( ColumnData $ParentRow, ColumnData $RelatedRow )
Persist ( Transaction $Transaction, ResultRow $ParentData, array $RelationshipChanges )
__construct ( JoinTable $JoinTable, $RelatesToTableTwo = true )

Méthodes protégées

Méthode Description
GroupRelatedRowsByParentKeys ( array &$MappedRelatedRows, ForeignKey $ForeignKey, array $ParentRows, array $RelatedRows )
MapParentRowToRelatedKey ( ForeignKey $ForeignKey, ResultRow $ParentRow )
ParentTable ( ForeignKey $ForeignKey )
PersistIdentifyingRelationship ( Transaction $Transaction, ResultRow $ParentRow, array $ChildRows )
RelatedColumns ( ForeignKey $ForeignKey )

Private Methods

Méthode Description
MapDiscardedRelationshipToJoinRow ( DiscardedRelationship $Relationship )
MapPersistedRelationshipToJoinRow ( PersistedRelationship $Relationship )
MapRelationshipToJoinRow ( $Relationship )

Method Details

AddConstraintToRequest() public méthode

public AddConstraintToRequest ( Request $Request )
$Request Storm\Core\Relational\Request

AddParentPredicateToRequest() public méthode

public AddParentPredicateToRequest ( Request $Request, array $ParentRows )
$Request Storm\Core\Relational\Request
$ParentRows array

GetJoinTable() final public méthode

final public GetJoinTable ( ) : JoinTable
Résultat JoinTable

GetOtherForeignKey() final public méthode

final public GetOtherForeignKey ( ) : ForeignKey
Résultat Storm\Drivers\Base\Relational\Traits\ForeignKey

GetRelationalParentColumns() public méthode

GroupRelatedRowsByParentKeys() protected méthode

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

MapParentRowToRelatedKey() protected méthode

protected MapParentRowToRelatedKey ( ForeignKey $ForeignKey, ResultRow $ParentRow )
$ForeignKey Storm\Drivers\Base\Relational\Traits\ForeignKey
$ParentRow Storm\Core\Relational\ResultRow

MapRelationalParentDataToRelatedData() public méthode

public MapRelationalParentDataToRelatedData ( ColumnData $ParentRow, ColumnData $RelatedRow )
$ParentRow Storm\Core\Relational\ColumnData
$RelatedRow Storm\Core\Relational\ColumnData

ParentTable() protected méthode

protected ParentTable ( ForeignKey $ForeignKey )
$ForeignKey Storm\Drivers\Base\Relational\Traits\ForeignKey

Persist() public méthode

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

PersistIdentifyingRelationship() protected méthode

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

RelatedColumns() protected méthode

protected RelatedColumns ( ForeignKey $ForeignKey )
$ForeignKey Storm\Drivers\Base\Relational\Traits\ForeignKey

__construct() public méthode

public __construct ( JoinTable $JoinTable, $RelatesToTableTwo = true )
$JoinTable JoinTable