Nextras\Orm\Entity\Reflection\MetadataParser::parseOneHasOne PHP Method

parseOneHasOne() protected method

protected parseOneHasOne ( PropertyMetadata $property, array &$args )
$property PropertyMetadata
$args array
    protected function parseOneHasOne(PropertyMetadata $property, array &$args)
    {
        $property->relationship = new PropertyRelationshipMetadata();
        $property->relationship->type = PropertyRelationshipMetadata::ONE_HAS_ONE;
        $property->container = OneHasOne::class;
        $this->processRelationshipIsMain($args, $property);
        $this->processRelationshipEntityProperty($args, $property);
        $this->processRelationshipCascade($args, $property);
    }