1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/manual/codes/Database operations - Nested transactions.php
2006-07-23 21:08:06 +00:00

18 lines
311 B
PHP

<?php
try {
$session->beginTransaction();
$user->save();
$session->beginTransaction();
$group->save();
$email->save();
$session->commit();
$session->commit();
} catch(Exception $e) {
$session->rollback();
}
?>