Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit bc26a6ab67bd5bab11646ddd025aa5dbdc5aea45 1 parent 7bead5d
@markstory markstory authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 cake/console/libs/tasks/fixture.php
View
7 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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.