mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing missing import for AppModel when baking with cake bake all
This commit is contained in:
parent
a0660ffd9d
commit
0c4a16bc98
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue