src/Graviton/GeneratorBundle/Definition/JsonDefinitionHash.php
private function processParentRelation(Schema\Relation $relation)
    {
        $prefixRegex = '/^'.preg_quote($this->name, '/').'\.(\d+\.)*(?P<sub>.*)/';
        if (!preg_match($prefixRegex, $relation->getLocalProperty(), $matches)) {
            return null;
        }

        $clone = clone $relation;
        $clone->setLocalProperty($matches['sub']);
        return $clone;
    }
private function processParentRelation(Schema\Relation $relation)
    {
        $prefixRegex = '/^'.preg_quote($this->name, '/').'\.(\d+\.)*(?P<sub>.*)/';
        if (!preg_match($prefixRegex, $relation->getLocalProperty(), $matches)) {
            return null;
        }

        $clone = clone $relation;
        $clone->setLocalProperty($matches['sub']);
        return $clone;
    }
private function processParentRelation ( Schema \ Relation $ relation ) { $ prefixRegex = '/^' . preg_quote ( $ this -> name , '/' ) . '\.(\d+\.)*(?P<sub>.*)/' ; if ( ! preg_match ( $ prefixRegex , $ relation -> getLocalProperty ( ) , $ matches ) ) { return null ; } $ clone = clone $ relation ; $ clone -> setLocalProperty ( $ matches [ 'sub' ] ) ; return $ clone ; }
Process parent relation

@param Schema\Relation $relation Parent relation
@return Schema\Relation|null
Process parent relation