original_string: 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;
              }
          }
      }
code: 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;
              }
          }
      }
code_tokens: 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 ; } } }
docstring: Synchronize vertexes and edges with related OrientDb database
  
  @param string $connectionName
docstring_tokens: Synchronize vertexes and edges with related OrientDb database