mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 07:29:51 +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;
|
$modelExists = false;
|
||||||
$model = $this->_modelName($name);
|
$model = $this->_modelName($name);
|
||||||
|
|
||||||
|
App::uses('AppModel', 'Model');
|
||||||
App::uses($model, 'Model');
|
App::uses($model, 'Model');
|
||||||
if (class_exists($model)) {
|
if (class_exists($model)) {
|
||||||
$object = new $model();
|
$object = new $model();
|
||||||
|
|
Loading…
Add table
Reference in a new issue