Bolt\Storage\Mapping\MetadataDriver::setIncomingRelations PHP Метод

setIncomingRelations() публичный Метод

public setIncomingRelations ( $contentKey, $className )
$contentKey
$className
    public function setIncomingRelations($contentKey, $className)
    {
        if (!isset($this->contenttypes[$contentKey])) {
            return;
        }
        $mapping = ['fieldname' => 'incomingrelation', 'type' => 'null', 'fieldtype' => $this->typemap['incomingrelation'], 'target' => $this->schemaManager->getTableName('relations')];
        $this->metadata[$className]['fields']['incomingrelation'] = $mapping;
    }