src/Formatter.php
public function getHasOneDbValue(RelationshipMetadata $relMeta, Model $model = null)
    {
        if (null === $model || true === $relMeta->isInverse) {
            return;
        }
        return $this->createReference($relMeta, $model);
    }
public function getHasOneDbValue(RelationshipMetadata $relMeta, Model $model = null)
    {
        if (null === $model || true === $relMeta->isInverse) {
            return;
        }
        return $this->createReference($relMeta, $model);
    }
public function getHasOneDbValue ( RelationshipMetadata $ relMeta , Model $ model = null ) { if ( null === $ model || true === $ relMeta -> isInverse ) { return ; } return $ this -> createReference ( $ relMeta , $ model ) ; }
Prepares and formats a has-one relationship model for proper insertion into the database.

@param   RelationshipMetadata    $relMeta
@param   Model|null              $model
@return  mixed
Prepares and formats a has - one relationship model for proper insertion into the database .