mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Disabling nested transaction for fixtures.
This commit is contained in:
parent
74830b9b93
commit
4e480eaca5
1 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,8 @@ class CakeFixtureManager {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$nested = $this->db->nestedTransaction;
|
||||||
|
$this->db->nestedTransaction = false;
|
||||||
$test->db->begin();
|
$test->db->begin();
|
||||||
foreach ($fixtures as $f) {
|
foreach ($fixtures as $f) {
|
||||||
if (!empty($this->_loaded[$f])) {
|
if (!empty($this->_loaded[$f])) {
|
||||||
|
@ -203,6 +205,7 @@ class CakeFixtureManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$test->db->commit();
|
$test->db->commit();
|
||||||
|
$this->db->nestedTransaction = $nested;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue