mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +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) {
|
protected function _setupTable($fixture, $db = null, $drop = true) {
|
||||||
if (!$db) {
|
if (!$db) {
|
||||||
if (!empty($fixture->useDbConfig)) {
|
if (!empty($fixture->useDbConfig)) {
|
||||||
$db = ClassRegistry::getDataSource($fixture->useDbConfig);
|
$db = ConnectionManager::getDataSource($fixture->useDbConfig);
|
||||||
} else {
|
} else {
|
||||||
$db = $this->_db;
|
$db = $this->_db;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue