mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing $this->AppModel from shells.
Having a partially constructed model in the shell is not useful, and gives the impression that it will work correctly. Which it doesn't.
This commit is contained in:
parent
fbcc9c1fc1
commit
830238c2dd
1 changed files with 0 additions and 5 deletions
|
@ -254,11 +254,6 @@ class Shell extends Object {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($this->uses === true && App::import('Model', 'AppModel')) {
|
||||
$this->AppModel =& new AppModel(false, false, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($this->uses !== true && !empty($this->uses)) {
|
||||
$uses = is_array($this->uses) ? $this->uses : array($this->uses);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue