Changeset 3935
- Timestamp:
- 03/06/08 06:10:46 (16 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Task/GenerateModelsYaml.php
r3884 r3935 36 36 $requiredArguments = array('yaml_schema_path' => 'Specify the complete directory path to your yaml schema files.', 37 37 'models_path' => 'Specify complete path to your Doctrine_Record definitions.'), 38 $optionalArguments = array( );38 $optionalArguments = array('generate_models_options' => 'Array of options for generating models'); 39 39 40 40 public function execute() 41 41 { 42 Doctrine::generateModelsFromYaml($this->getArgument('yaml_schema_path'), $this->getArgument('models_path') );42 Doctrine::generateModelsFromYaml($this->getArgument('yaml_schema_path'), $this->getArgument('models_path'), $this->getArgument('generate_models_options', array())); 43 43 44 44 $this->notify('Generated models successfully from YAML schema');