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();
    }
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();
    }
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 ( ) ; }
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
Generate db elements .