Skip to content

Commit

Permalink
Removing $this->AppModel from shells.
Browse files Browse the repository at this point in the history
Having a partially constructed model in the shell is not useful, and
gives the impression that it will work correctly. Which it doesn't.
  • Loading branch information
markstory committed Oct 14, 2010
1 parent fbcc9c1 commit 830238c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cake/console/libs/shell.php
Expand Up @@ -254,11 +254,6 @@ protected function _loadModels() {
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);

Expand Down

0 comments on commit 830238c

Please sign in to comment.