Fixing missing import for AppModel when baking with cake bake all

This commit is contained in:
mark_story 2011-04-16 09:33:16 -04:00
parent a0660ffd9d
commit 0c4a16bc98

View file

@ -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();