src/Graviton/GeneratorBundle/Definition/JsonDefinitionHash.php
private function cloneFieldDefinition(Schema\Field $field)
    {
        $clone = clone $field;
        $clone->setName(preg_replace('/^'.preg_quote($this->name, '/').'\.(\d+\.)*/', '', $clone->getName()));
        return $clone;
    }
private function cloneFieldDefinition(Schema\Field $field)
    {
        $clone = clone $field;
        $clone->setName(preg_replace('/^'.preg_quote($this->name, '/').'\.(\d+\.)*/', '', $clone->getName()));
        return $clone;
    }
private function cloneFieldDefinition ( Schema \ Field $ field ) { $ clone = clone $ field ; $ clone -> setName ( preg_replace ( '/^' . preg_quote ( $ this -> name , '/' ) . '\.(\d+\.)*/' , '' , $ clone -> getName ( ) ) ) ; return $ clone ; }
Clone field definition

@param Schema\Field $field Field
@return Schema\Field
Clone field definition