2007-04-13 00:52:30 +04:00
|
|
|
|
2007-04-14 01:49:11 +04:00
|
|
|
<code type="php">
|
|
|
|
try {
|
|
|
|
$conn->beginTransaction();
|
|
|
|
|
|
|
|
$user->save();
|
|
|
|
|
|
|
|
$conn->beginTransaction();
|
|
|
|
$group->save();
|
|
|
|
$email->save();
|
|
|
|
|
|
|
|
$conn->commit();
|
|
|
|
|
|
|
|
$conn->commit();
|
|
|
|
} catch(Exception $e) {
|
|
|
|
$conn->rollback();
|
|
|
|
}
|
|
|
|
</code>
|