Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Flushing the CR after a model file is created, so a controller can be…
… full baked without the need of restarting an bake session. Fixes #310.
  • Loading branch information
renan committed Feb 11, 2010
1 parent 3a03672 commit 0611f1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cake/console/libs/tasks/model.php
Expand Up @@ -741,6 +741,7 @@ function bake($name, $data = array()) {
$filename = $path . Inflector::underscore($name) . '.php';
$this->out("\nBaking model class for $name...");
$this->createFile($filename, $out);
ClassRegistry::flush();
return $out;
}

Expand Down

0 comments on commit 0611f1b

Please sign in to comment.