mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
6d743971e9
commit
ac1f64abc9
1 changed files with 2 additions and 5 deletions
|
@ -204,19 +204,16 @@ class CakeFixtureManager {
|
|||
return;
|
||||
}
|
||||
|
||||
$nested = $test->db->useNestedTransactions;
|
||||
$test->db->useNestedTransactions = false;
|
||||
$test->db->begin();
|
||||
foreach ($fixtures as $f) {
|
||||
if (!empty($this->_loaded[$f])) {
|
||||
$fixture = $this->_loaded[$f];
|
||||
$db = ConnectionManager::getDataSource($fixture->useDbConfig);
|
||||
$db->begin();
|
||||
$this->_setupTable($fixture, $db, $test->dropTables);
|
||||
$fixture->insert($db);
|
||||
$db->commit();
|
||||
}
|
||||
}
|
||||
$test->db->commit();
|
||||
$test->db->useNestedTransactions = $nested;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue