Disabling nested transaction for fixtures.

This commit is contained in:
Juan Basso 2012-04-24 20:01:13 -04:00
parent 74830b9b93
commit 4e480eaca5

View file

@ -193,6 +193,8 @@ class CakeFixtureManager {
return;
}
$nested = $this->db->nestedTransaction;
$this->db->nestedTransaction = false;
$test->db->begin();
foreach ($fixtures as $f) {
if (!empty($this->_loaded[$f])) {
@ -203,6 +205,7 @@ class CakeFixtureManager {
}
}
$test->db->commit();
$this->db->nestedTransaction = $nested;
}
/**