Storm\Drivers\Base\Relational\Relations\JoinTableRelation::GroupRelatedRowsByParentKeys PHP Метод

GroupRelatedRowsByParentKeys() защищенный Метод

protected GroupRelatedRowsByParentKeys ( array &$MappedRelatedRows, ForeignKey $ForeignKey, array $ParentRows, array $RelatedRows )
$MappedRelatedRows array
$ForeignKey Storm\Drivers\Base\Relational\Traits\ForeignKey
$ParentRows array
$RelatedRows array
    protected function GroupRelatedRowsByParentKeys(array &$MappedRelatedRows, ForeignKey $ForeignKey, array $ParentRows, array $RelatedRows)
    {
        $ParentJoinTableKeys = $this->ParentForeignKey->GetParentColumns();
        $ParentReferencedKeys = $this->ParentForeignKey->GetReferencedColumns();
        $GroupedRelatedRows = $this->GroupRowsByColumnValues($RelatedRows, $ParentJoinTableKeys);
        $this->MapParentRowKeysToGroupedRelatedRows($MappedRelatedRows, $ParentRows, $ParentReferencedKeys, $GroupedRelatedRows);
    }