Browse Source

All other tasks call this action 'bake' not 'generate'.

mark_story 12 years ago
parent
commit
b9aa687898
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Console/Command/Task/ModelTask.php

+ 3 - 3
src/Console/Command/Task/ModelTask.php

@@ -105,7 +105,7 @@ class ModelTask extends BakeTask {
 			return $this->all();
 		}
 
-		$this->generate($this->_modelName($this->args[0]));
+		$this->bake($this->_modelName($this->args[0]));
 	}
 
 /**
@@ -114,7 +114,7 @@ class ModelTask extends BakeTask {
  * @param string $name The model name to generate.
  * @return void
  */
-	public function generate($name) {
+	public function bake($name) {
 		$table = $this->getTable($name);
 		$model = $this->getTableObject($name, $table);
 		$associations = $this->getAssociations($model);
@@ -147,7 +147,7 @@ class ModelTask extends BakeTask {
 			}
 			$modelClass = $this->_modelName($table);
 			$this->out(__d('cake_console', 'Baking %s', $modelClass));
-			$this->generate($modelClass);
+			$this->bake($modelClass);
 		}
 	}