From b95f367bef217073e789e2da622575ced7c1aaf6 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Tue, 24 Apr 2012 00:34:22 -0400 Subject: [PATCH] Disabled nested transactions for fixtures. --- lib/Cake/TestSuite/Fixture/CakeTestFixture.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php index 5f2ed233c..4a16be679 100644 --- a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php +++ b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php @@ -241,7 +241,11 @@ class CakeTestFixture { $fields = array_keys($record); $values[] = array_values(array_merge($default, $record)); } - return $db->insertMulti($this->table, $fields, $values); + $nested = $db->nestedTransaction; + $db->nestedTransaction = false; + $result = $db->insertMulti($this->table, $fields, $values); + $db->nestedTransaction = $nested; + return $result; } return true; }