Skip to content
Permalink
Browse files

Updating fixture task to change when CakeSchema is loaded to fix issu…

…es with errors being generated when baking new projects.

Fixes #226
  • Loading branch information...
markstory committed Oct 31, 2009
1 parent 7bead5d commit bc26a6ab67bd5bab11646ddd025aa5dbdc5aea45
Showing with 4 additions and 3 deletions.
  1. +4 −3 cake/console/libs/tasks/fixture.php
@@ -73,9 +73,6 @@ class FixtureTask extends Shell {
function __construct(&$dispatch) {
parent::__construct($dispatch);
$this->path = $this->params['working'] . DS . 'tests' . DS . 'fixtures' . DS;
if (!class_exists('CakeSchema')) {
App::import('Model', 'CakeSchema', false);
}
}
/**
@@ -85,6 +82,10 @@ function __construct(&$dispatch) {
* @access public
*/
function execute() {
if (!class_exists('CakeSchema')) {
App::import('Model', 'CakeSchema', false);
}
if (empty($this->args)) {
$this->__interactive();
}

0 comments on commit bc26a6a

Please sign in to comment.
You can’t perform that action at this time.