mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Disabled nested transactions for fixtures.
This commit is contained in:
parent
7e38f9d79f
commit
b95f367bef
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue