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;
}