src/Graviton/GeneratorBundle/Definition/JsonDefinition.php
private function getRelation($field)
    {
        $relations = $this->getRelations();
        return isset($relations[$field]) ? $relations[$field] : null;
    }
private function getRelation($field)
    {
        $relations = $this->getRelations();
        return isset($relations[$field]) ? $relations[$field] : null;
    }
private function getRelation ( $ field ) { $ relations = $ this -> getRelations ( ) ; return isset ( $ relations [ $ field ] ) ? $ relations [ $ field ] : null ; }
Get relation by field name

@param string $field Field name
@return Schema\Relation|null
Get relation by field name