Skip to content

Commit

Permalink
Fixing missing import for AppModel when baking with cake bake all
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 16, 2011
1 parent a0660ff commit 0c4a16b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/Console/Command/BakeShell.php
Expand Up @@ -151,6 +151,8 @@ public function all() {

$modelExists = false;
$model = $this->_modelName($name);

App::uses('AppModel', 'Model');
App::uses($model, 'Model');
if (class_exists($model)) {
$object = new $model();
Expand Down

0 comments on commit 0c4a16b

Please sign in to comment.