Changeset 8970
- Timestamp:
- 05/15/08 05:59:27 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllLoadTask.class.php
r8491 r8970 33 33 new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), 34 34 new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel'), 35 new sfCommandOption('skip-forms', 'F', sfCommandOption::PARAMETER_NONE, 'Skip generating forms') 35 36 )); 36 37 … … 66 67 $buildAll = new sfPropelBuildAllTask($this->dispatcher, $this->formatter); 67 68 $buildAll->setCommandApplication($this->commandApplication); 68 $buildAll->run( );69 $buildAll->run(array(), $options['skip-forms'] ? array('--skip-forms') : array()); 69 70 70 71 $loadData = new sfPropelLoadDataTask($this->dispatcher, $this->formatter); branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllTask.class.php
r7400 r8970 31 31 $this->briefDescription = 'Generates Propel model, SQL and initializes the database'; 32 32 33 $this->addOptions(array( 34 new sfCommandOption('skip-forms', 'F', sfCommandOption::PARAMETER_NONE, 'Skip generating forms') 35 )); 36 33 37 $this->detailedDescription = <<<EOF 34 38 The [propel:build-all|INFO] task is a shortcut for three other tasks: … … 60 64 $buildSql->run(); 61 65 62 $buildForms = new sfPropelBuildFormsTask($this->dispatcher, $this->formatter); 63 $buildForms->setCommandApplication($this->commandApplication); 64 $buildForms->run(); 66 if (!$options['skip-forms']) 67 { 68 $buildForms = new sfPropelBuildFormsTask($this->dispatcher, $this->formatter); 69 $buildForms->setCommandApplication($this->commandApplication); 70 $buildForms->run(); 71 } 65 72 66 73 $insertSql = new sfPropelInsertSqlTask($this->dispatcher, $this->formatter);