2006-07-24 01:08:06 +04:00
|
|
|
<?php
|
2006-08-22 02:51:27 +04:00
|
|
|
$sess = Doctrine_Manager::getInstance()->openConnection(new PDO("dsn","username","password"));
|
2006-07-24 01:08:06 +04:00
|
|
|
try {
|
|
|
|
$sess->beginTransaction();
|
|
|
|
|
|
|
|
// some database operations
|
|
|
|
|
|
|
|
$sess->commit();
|
|
|
|
|
|
|
|
} catch(Exception $e) {
|
|
|
|
$sess->rollback();
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|