ClassRegistry::getDataSource doesn't exist

This commit is contained in:
AD7six 2012-05-04 20:13:44 +02:00
parent 7b5e45b965
commit ef9c5bc004

View file

@ -158,7 +158,7 @@ class CakeFixtureManager {
protected function _setupTable($fixture, $db = null, $drop = true) {
if (!$db) {
if (!empty($fixture->useDbConfig)) {
$db = ClassRegistry::getDataSource($fixture->useDbConfig);
$db = ConnectionManager::getDataSource($fixture->useDbConfig);
} else {
$db = $this->_db;
}