mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
ClassRegistry::getDataSource doesn't exist
This commit is contained in:
parent
7b5e45b965
commit
ef9c5bc004
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue