src/app/n2n/impl/persistence/orm/property/hangar/relation/OneToOnePropDef.php
public function applyDbMeta(DbInfo $dbInfo, PropSourceDef $propSourceDef, 
			EntityProperty $entityProperty, AnnotationSet $annotationSet) {
		ArgUtils::assertTrue($entityProperty instanceof RelationEntityProperty);
		
		$propertyName = $propSourceDef->getPropertyName();
		$annoOneToOne = $annotationSet->getPropertyAnnotation($propertyName, 
				AnnoOneToOne::class);
		CastUtils::assertTrue($annoOneToOne instanceof AnnoOneToOne);
		
		if (null !== $annoOneToOne->getMappedBy()) return;
		
		$relation = $entityProperty->getRelation();
		ArgUtils::assertTrue($relation instanceof ToOneRelation);
		if (!$relation instanceof JoinColumnToOneRelation) return;
		
		$table = $dbInfo->getTable();
		if (!$table->containsColumnName($relation->getJoinColumnName())) {
			$table->createColumnFactory()->createIntegerColumn(
					$relation->getJoinColumnName(), 
					$this->columnDefaults->getDefaultIntegerSize(), 
					$this->columnDefaults->getDefaultInterSigned());
		}
	}
public function applyDbMeta(DbInfo $dbInfo, PropSourceDef $propSourceDef, 
			EntityProperty $entityProperty, AnnotationSet $annotationSet) {
		ArgUtils::assertTrue($entityProperty instanceof RelationEntityProperty);
		
		$propertyName = $propSourceDef->getPropertyName();
		$annoOneToOne = $annotationSet->getPropertyAnnotation($propertyName, 
				AnnoOneToOne::class);
		CastUtils::assertTrue($annoOneToOne instanceof AnnoOneToOne);
		
		if (null !== $annoOneToOne->getMappedBy()) return;
		
		$relation = $entityProperty->getRelation();
		ArgUtils::assertTrue($relation instanceof ToOneRelation);
		if (!$relation instanceof JoinColumnToOneRelation) return;
		
		$table = $dbInfo->getTable();
		if (!$table->containsColumnName($relation->getJoinColumnName())) {
			$table->createColumnFactory()->createIntegerColumn(
					$relation->getJoinColumnName(), 
					$this->columnDefaults->getDefaultIntegerSize(), 
					$this->columnDefaults->getDefaultInterSigned());
		}
	}
{@inheritDoc}
@see \hangar\api\HangarPropDef::applyDbMeta()