Skip to content
Permalink
Browse files

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 0611f1b1f3ad9bdbd493623a73fb40cc18eeef3d
Showing with 1 addition and 0 deletions.
  1. +1 −0 cake/console/libs/tasks/model.php
@@ -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;
}

0 comments on commit 0611f1b

Please sign in to comment.
You can’t perform that action at this time.