From 830238c2dd2df288b5bb6e45fde81375b3d6d30c Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 9 Oct 2010 21:34:51 -0400 Subject: [PATCH] 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. --- cake/console/libs/shell.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cake/console/libs/shell.php b/cake/console/libs/shell.php index a15da2e50..02aef7a1b 100644 --- a/cake/console/libs/shell.php +++ b/cake/console/libs/shell.php @@ -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);