public function synchronize($connectionName)
    {
        $configuration = $this->getConfiguration($connectionName);
        $database = $this->getDatabase($connectionName);

        foreach ($configuration->getVertexes() as $vertex) {
            try {
                $database->query(sprintf('CREATE CLASS %s EXTENDS V',
                    $vertex->getName()
                ));
                $database->query(sprintf('DISPLAY RECORD 0',
                    $vertex->getName()
                ));
                dump($res); die;
            } catch (\Exception $e) {
                if (preg_match(sprintf('/Class %s already exists in current database$/', $vertex->getName()), $e->getMessage())) {
                    continue;
                }

                throw $e;
            }
        }
    }
public function synchronize($connectionName)
    {
        $configuration = $this->getConfiguration($connectionName);
        $database = $this->getDatabase($connectionName);

        foreach ($configuration->getVertexes() as $vertex) {
            try {
                $database->query(sprintf('CREATE CLASS %s EXTENDS V',
                    $vertex->getName()
                ));
                $database->query(sprintf('DISPLAY RECORD 0',
                    $vertex->getName()
                ));
                dump($res); die;
            } catch (\Exception $e) {
                if (preg_match(sprintf('/Class %s already exists in current database$/', $vertex->getName()), $e->getMessage())) {
                    continue;
                }

                throw $e;
            }
        }
    }
public function synchronize ( $ connectionName ) { $ configuration = $ this -> getConfiguration ( $ connectionName ) ; $ database = $ this -> getDatabase ( $ connectionName ) ; foreach ( $ configuration -> getVertexes ( ) as $ vertex ) { try { $ database -> query ( sprintf ( 'CREATE CLASS %s EXTENDS V' , $ vertex -> getName ( ) ) ) ; $ database -> query ( sprintf ( 'DISPLAY RECORD 0' , $ vertex -> getName ( ) ) ) ; dump ( $ res ) ; die ; } catch ( \ Exception $ e ) { if ( preg_match ( sprintf ( '/Class %s already exists in current database$/' , $ vertex -> getName ( ) ) , $ e -> getMessage ( ) ) ) { continue ; } throw $ e ; } } }
Synchronize vertexes and edges with related OrientDb database

@param string $connectionName
Synchronize vertexes and edges with related OrientDb database