Storm\Drivers\Base\Relational\Relations\KeyedRelation::MapParentRowToRelatedKey PHP Метод

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

protected MapParentRowToRelatedKey ( ForeignKey $ForeignKey, ResultRow $ParentRow ) : ResultRow
$ForeignKey Storm\Drivers\Base\Relational\Traits\ForeignKey
$ParentRow Storm\Core\Relational\ResultRow
Результат Storm\Core\Relational\ResultRow
    protected function MapParentRowToRelatedKey(ForeignKey $ForeignKey, Relational\ResultRow $ParentRow)
    {
        if ($this->IsInversed) {
            $ParentKey = $ForeignKey->ParentKey();
            $ForeignKey->MapReferencedToParentKey($ParentRow, $ParentKey);
            return $ParentKey;
        } else {
            $ReferencedKey = $ForeignKey->ReferencedKey();
            $ForeignKey->MapParentToReferencedKey($ParentRow, $ReferencedKey);
            return $ReferencedKey;
        }
    }