public function createCollectionOneHasOne(PropertyMetadata $metadata, IEntity $parent)
{
$collection = $this->findAll();
$collection->setRelationshipMapping($metadata->relationship->isMain ? new RelationshipMapperManyHasOne($metadata) : new RelationshipMapperOneHasOne($this, $metadata), $parent);
return $collection;
}