Skip to content
Browse files

Updating model import()

  • Loading branch information...
1 parent 6322375 commit 8e152ada3208f8a73aef3cd945d885bd8e6a0e3e @markstory markstory committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 cake/console/libs/tasks/model.php
View
4 cake/console/libs/tasks/model.php
@@ -20,8 +20,6 @@
* @since CakePHP(tm) v 1.2
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
-App::import('Model', 'ConnectionManager');
-
/**
* Task class for creating and updating model files.
*
@@ -82,7 +80,7 @@ class ModelTask extends Shell {
* @return void
**/
function startup() {
- App::import('Core', 'Model');
+ App::import('Core', 'Model', false, App::core('models'));
parent::startup();
}

0 comments on commit 8e152ad

Please sign in to comment.
Something went wrong with that request. Please try again.