Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('propel:model:build')->setDescription('Build the model classes based on Propel XML schemas')->addOption('connection', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Connection to use. Example: default, bookstore')->addArgument('bundle', InputArgument::OPTIONAL, 'The bundle to generate model classes from');
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('propel:migration:up')->setDescription('Execute (only one) next migration')->addOption('connection', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Connection to use. Example: default, bookstore')->addOption('migration-table', null, InputOption::VALUE_OPTIONAL, 'Migration table name (if none given, the configured table is used)', null)->addOption('output-dir', null, InputOption::VALUE_OPTIONAL, 'The output directory')->addOption('fake', null, InputOption::VALUE_NONE, 'Does not touch the actual schema, but marks next migration as executed.')->addOption('force', null, InputOption::VALUE_NONE, 'Continues with the migration even when errors occur.');
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('propel:sql:build')->setDescription('Build SQL files')->addOption('sql-dir', null, InputOption::VALUE_REQUIRED, 'The SQL files directory')->addOption('overwrite', null, InputOption::VALUE_NONE, '')->addOption('connection', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Connection to use. Example: default, bookstore');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('propel:database:reverse')->setDescription('Reverse-engineer a XML schema file based on given database')->addArgument('connection', InputArgument::REQUIRED, 'Connection to use. Example: "default"')->addOption('output-dir', null, InputOption::VALUE_REQUIRED, 'The output directory', BaseDatabaseReverseCommand::DEFAULT_OUTPUT_DIRECTORY)->addOption('database-name', null, InputOption::VALUE_REQUIRED, 'The database name to reverse', BaseDatabaseReverseCommand::DEFAULT_DATABASE_NAME)->addOption('schema-name', null, InputOption::VALUE_REQUIRED, 'The schema name to generate', BaseDatabaseReverseCommand::DEFAULT_SCHEMA_NAME);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('propel:migration:status')->setDescription('Get migration status')->addOption('connection', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Connection to use. Example: default, bookstore')->addOption('migration-table', null, InputOption::VALUE_OPTIONAL, 'Migration table name (if none given, the configured table is used)', null)->addOption('output-dir', null, InputOption::VALUE_OPTIONAL, 'The output directory');
 }
Example #6
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('propel:migration:diff')->setDescription('Generate diff classes')->addOption('connection', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Connection to use. Example: default, bookstore')->addOption('output-dir', null, InputOption::VALUE_OPTIONAL, 'The output directory')->addOption('migration-table', null, InputOption::VALUE_OPTIONAL, 'Migration table name (if none given, the configured table is used)', null)->addOption('table-renaming', null, InputOption::VALUE_NONE, 'Detect table renaming', null)->addOption('editor', null, InputOption::VALUE_OPTIONAL, 'The text editor to use to open diff files', null)->addOption('skip-removed-table', null, InputOption::VALUE_NONE, 'Option to skip removed table from the migration')->addOption('skip-tables', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'List of excluded tables', array());
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('propel:graphviz:generate')->setDescription('Generate Graphviz files (.dot)')->addOption('output-dir', null, InputOption::VALUE_REQUIRED, 'The output directory', BaseGraphvizGenerateCommand::DEFAULT_OUTPUT_DIRECTORY);
 }