Disabled nested transactions for fixtures.

This commit is contained in:
Juan Basso 2012-04-24 00:34:22 -04:00
parent 7e38f9d79f
commit b95f367bef

View file

@ -241,7 +241,11 @@ class CakeTestFixture {
$fields = array_keys($record); $fields = array_keys($record);
$values[] = array_values(array_merge($default, $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; return true;
} }