Storm\Drivers\Base\Relational\Relations\ToManyRelationBase::MapParentKeysToRelatedRows PHP Метод

MapParentKeysToRelatedRows() закрытый публичный Метод

final public MapParentKeysToRelatedRows ( array $ParentRows, array $RelatedRows )
$ParentRows array
$RelatedRows array
    public final function MapParentKeysToRelatedRows(array $ParentRows, array $RelatedRows)
    {
        $MappedRelatedRows = [];
        if (count($ParentRows) === 1) {
            $MappedRelatedRows[key($ParentRows)] = $RelatedRows;
        } else {
            $this->GroupRelatedRowsByParentKeys($MappedRelatedRows, $this->GetForeignKey(), $ParentRows, $RelatedRows);
        }
        return $MappedRelatedRows;
    }