public function getPropertyRelationMap(): array
    {
        $relations = [];

        foreach ($this->getRelationMappings() as $mapping) {
            $accessor = $mapping->getAccessor();

            if ($accessor instanceof PropertyAccessor) {
                $relations[$accessor->getPropertyName()] = $mapping->getRelation();
            }
        }

        return $relations;
    }
public function getPropertyRelationMap(): array
    {
        $relations = [];

        foreach ($this->getRelationMappings() as $mapping) {
            $accessor = $mapping->getAccessor();

            if ($accessor instanceof PropertyAccessor) {
                $relations[$accessor->getPropertyName()] = $mapping->getRelation();
            }
        }

        return $relations;
    }
public function getPropertyRelationMap ( ) : array { $ relations = [ ] ; foreach ( $ this -> getRelationMappings ( ) as $ mapping ) { $ accessor = $ mapping -> getAccessor ( ) ; if ( $ accessor instanceof PropertyAccessor ) { $ relations [ $ accessor -> getPropertyName ( ) ] = $ mapping -> getRelation ( ) ; } } return $ relations ; }
Gets the relations mapped to properties.

@return IRelation[]
Gets the relations mapped to properties .