original_string: public function generateDB($config, $bar, $section, $table, $splitTable, $command)
      {
          if ($config['options-migration']) {
              $this->dbGenerator->createMigration(
                  $config,
                  $section,
                  $table,
                  $splitTable,
                  $command
              );
              if ($config['options-schema']) {
                  $this->dbGenerator->createSchema(
                      $config,
                      $section,
                      $table,
                      $splitTable,
                      $config['options-schema']
                  );
              }
          }
          $bar->advance();
      }
code: public function generateDB($config, $bar, $section, $table, $splitTable, $command)
      {
          if ($config['options-migration']) {
              $this->dbGenerator->createMigration(
                  $config,
                  $section,
                  $table,
                  $splitTable,
                  $command
              );
              if ($config['options-schema']) {
                  $this->dbGenerator->createSchema(
                      $config,
                      $section,
                      $table,
                      $splitTable,
                      $config['options-schema']
                  );
              }
          }
          $bar->advance();
      }
code_tokens: public function generateDB ( $ config , $ bar , $ section , $ table , $ splitTable , $ command ) { if ( $ config [ 'options-migration' ] ) { $ this -> dbGenerator -> createMigration ( $ config , $ section , $ table , $ splitTable , $ command ) ; if ( $ config [ 'options-schema' ] ) { $ this -> dbGenerator -> createSchema ( $ config , $ section , $ table , $ splitTable , $ config [ 'options-schema' ] ) ; } } $ bar -> advance ( ) ; }
docstring: Generate db elements.
  
  @param \Symfony\Component\Console\Helper\ProgressBar $bar
  @param string                                        $section
  @param string                                        $table
  @param array                                         $splitTable
  @param \Grafite\CrudMaker\Console\CrudMaker              $command
docstring_tokens: Generate db elements .