2007-04-12 20:52:30 +00:00
|
|
|
|
2007-04-13 21:49:11 +00: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>
|