Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing error when no connection is specified and

bake fixture Foo is used.
  • Loading branch information...
commit fd5b422357bd73a7146c9135c314c351b4cae2a2 1 parent 37d81cb
@markstory markstory authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 cake/console/libs/tasks/fixture.php
View
8 cake/console/libs/tasks/fixture.php
@@ -79,11 +79,14 @@ function execute() {
}
if (isset($this->args[0])) {
+ if (!isset($this->connection)) {
+ $this->connection = 'default';
+ }
if (strtolower($this->args[0]) == 'all') {
return $this->all();
}
$model = Inflector::camelize($this->args[0]);
- return $this->bake($model);
+ $this->bake($model);
}
}
@@ -94,9 +97,6 @@ function execute() {
* @return void
**/
function all() {
- if (!isset($this->connection)) {
- $this->connection = 'default';
- }
$this->interactive = false;
$tables = $this->Model->listAll($this->connection, false);
foreach ($tables as $table) {
Please sign in to comment.
Something went wrong with that request. Please try again.