diff --git a/lib/Cake/Console/Command/BakeShell.php b/lib/Cake/Console/Command/BakeShell.php index b4894dd78..94b06f379 100644 --- a/lib/Cake/Console/Command/BakeShell.php +++ b/lib/Cake/Console/Command/BakeShell.php @@ -151,6 +151,8 @@ class BakeShell extends Shell { $modelExists = false; $model = $this->_modelName($name); + + App::uses('AppModel', 'Model'); App::uses($model, 'Model'); if (class_exists($model)) { $object = new $model();