Permalink
Browse files

Disabled nested transactions for fixtures.

  • Loading branch information...
jrbasso committed Apr 24, 2012
1 parent 7e38f9d commit b95f367bef217073e789e2da622575ced7c1aaf6
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Cake/TestSuite/Fixture/CakeTestFixture.php
@@ -241,7 +241,11 @@ public function insert($db) {
$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;
}

0 comments on commit b95f367

Please sign in to comment.