source/Spiral/ORM/Entities/Loaders/RelationLoader.php
protected function localKey($key)
    {
        if (empty($this->schema[$key])) {
            return null;
        }

        return $this->getAlias() . '.' . $this->schema[$key];
    }
protected function localKey($key)
    {
        if (empty($this->schema[$key])) {
            return null;
        }

        return $this->getAlias() . '.' . $this->schema[$key];
    }
protected function localKey ( $ key ) { if ( empty ( $ this -> schema [ $ key ] ) ) { return null ; } return $ this -> getAlias ( ) . '.' . $ this -> schema [ $ key ] ; }
Generate sql identifier using loader alias and value from relation definition. Key name to be
fetched from schema.

Example:
$this->getKey(Record::OUTER_KEY);

@param string $key

@return string|null
Generate sql identifier using loader alias and value from relation definition . Key name to be fetched from schema .