Skip to content

Commit

Permalink
Fixing CakeFixtureManager::loadSingle to create the table if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 1, 2010
1 parent 82da9be commit c4b35eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/tests/lib/cake_fixture_manager.php
Expand Up @@ -43,7 +43,7 @@ class CakeFixtureManager {
protected $_loaded = array();

/**
* Holds the fixture classes that where instantiated indexed by class name
* Holds the fixture classes that where ins tantiated indexed by class name
*
* @var array
*/
Expand Down Expand Up @@ -260,6 +260,7 @@ public function loadSingle($name, $db = null) {
$db = $this->_db;
}
$fixture = $this->_fixtureMap[$name];
$this->_setupTable($fixture, $db);
$fixture->truncate($db);
$fixture->insert($db);
} else {
Expand Down

0 comments on commit c4b35eb

Please sign in to comment.