From 4e480eaca517cd85f27d0b10d8bfc34bb1214714 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Tue, 24 Apr 2012 20:01:13 -0400 Subject: [PATCH] Disabling nested transaction for fixtures. --- lib/Cake/TestSuite/Fixture/CakeFixtureManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php index 0e262a917..22edb5666 100644 --- a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php +++ b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php @@ -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; } /**