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:
mark_story 2010-10-09 21:34:51 -04:00
parent fbcc9c1fc1
commit 830238c2dd

View file

@ -254,11 +254,6 @@ class Shell extends Object {
return; 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)) { if ($this->uses !== true && !empty($this->uses)) {
$uses = is_array($this->uses) ? $this->uses : array($this->uses); $uses = is_array($this->uses) ? $this->uses : array($this->uses);