src/Graviton/GeneratorBundle/Definition/JsonDefinition.php
public function getRelations()
    {
        if ($this->def->getTarget() === null) {
            return [];
        }

        $relations = [];
        foreach ($this->def->getTarget()->getRelations() as $relation) {
            $relations[$relation->getLocalProperty()] = $relation;
        }

        return $relations;
    }
public function getRelations()
    {
        if ($this->def->getTarget() === null) {
            return [];
        }

        $relations = [];
        foreach ($this->def->getTarget()->getRelations() as $relation) {
            $relations[$relation->getLocalProperty()] = $relation;
        }

        return $relations;
    }
public function getRelations ( ) { if ( $ this -> def -> getTarget ( ) === null ) { return [ ] ; } $ relations = [ ] ; foreach ( $ this -> def -> getTarget ( ) -> getRelations ( ) as $ relation ) { $ relations [ $ relation -> getLocalProperty ( ) ] = $ relation ; } return $ relations ; }
Get target relations which are explictly defined

@return Schema\Relation[] relations
Get target relations which are explictly defined