From c4b35ebc1499aa660401b33c8b081b132e1d237d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Mon, 31 May 2010 23:49:18 -0430 Subject: [PATCH] Fixing CakeFixtureManager::loadSingle to create the table if not exists --- cake/tests/lib/cake_fixture_manager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cake/tests/lib/cake_fixture_manager.php b/cake/tests/lib/cake_fixture_manager.php index 05d21a5fd..8517c97a7 100644 --- a/cake/tests/lib/cake_fixture_manager.php +++ b/cake/tests/lib/cake_fixture_manager.php @@ -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 */ @@ -260,6 +260,7 @@ class CakeFixtureManager { $db = $this->_db; } $fixture = $this->_fixtureMap[$name]; + $this->_setupTable($fixture, $db); $fixture->truncate($db); $fixture->insert($db); } else {