Changeset 7398
- Timestamp:
- 02/08/08 08:08:18 (10 months ago)
- Files:
-
- branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBaseTask.class.php (modified) (5 diffs)
- branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildFormsTask.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildModelTask.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelDataLoadTask.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBaseTask.class.php
r7397 r7398 64 64 $dbSchema->loadXML($schema); 65 65 66 $this->log ('schema', sprintf('converting "%s" to YML', $schema));66 $this->logSection('schema', sprintf('converting "%s" to YML', $schema)); 67 67 68 68 $localprefix = $prefix; … … 78 78 79 79 $file = str_replace(basename($schema), $prefix.$yml_file_name, $schema); 80 $this->log ('schema', sprintf('putting %s', $file));80 $this->logSection('schema', sprintf('putting %s', $file)); 81 81 file_put_contents($file, $dbSchema->asYAML()); 82 82 } … … 114 114 foreach ($customSchemas as $customSchema) 115 115 { 116 $this->log ('schema', sprintf('found custom schema %s', $customSchema));116 $this->logSection('schema', sprintf('found custom schema %s', $customSchema)); 117 117 118 118 $customSchemaArray = sfYaml::load($customSchema); … … 127 127 $dbSchema->loadArray($schemaArray); 128 128 129 $this->log ('schema', sprintf('converting "%s" to XML', $schema));129 $this->logSection('schema', sprintf('converting "%s" to XML', $schema)); 130 130 131 131 $localprefix = $prefix; … … 141 141 142 142 $file = str_replace(basename($schema), $localprefix.$xml_file_name, $schema); 143 $this->log ('schema', sprintf('putting %s', $file));143 $this->logSection('schema', sprintf('putting %s', $file)); 144 144 file_put_contents($file, $dbSchema->asXML()); 145 145 } branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildFormsTask.class.php
r7397 r7398 59 59 protected function execute($arguments = array(), $options = array()) 60 60 { 61 $this->log ('propel', 'generating form classes');61 $this->logSection('propel', 'generating form classes'); 62 62 63 63 $generatorManager = new sfGeneratorManager(); branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildModelTask.class.php
r7397 r7398 59 59 $this->cleanup(); 60 60 61 $this->log ('autoload', 'reloading autoloading');61 $this->logSection('autoload', 'reloading autoloading'); 62 62 63 63 sfSimpleAutoload::getInstance()->reload(); branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelDataLoadTask.class.php
r7397 r7398 101 101 } 102 102 103 $this->log ('propel', sprintf('load data from "%s"', $fixturesDir));103 $this->logSection('propel', sprintf('load data from "%s"', $fixturesDir)); 104 104 $data->loadData($fixturesDir, $options['connection']); 105 105 }