Skip to content

Commit

Permalink
Disabled nested transactions for fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Apr 24, 2012
1 parent 7e38f9d commit b95f367
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Cake/TestSuite/Fixture/CakeTestFixture.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit b95f367

Please sign in to comment.