Skip to content
Permalink
Browse files

Fixing error when no connection is specified and

bake fixture Foo is used.
  • Loading branch information...
markstory committed May 8, 2009
1 parent 37d81cb commit fd5b422357bd73a7146c9135c314c351b4cae2a2
Showing with 4 additions and 4 deletions.
  1. +4 −4 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) {

0 comments on commit fd5b422

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