Hi All,
$con = Doctrine_Manager::connection();
try {
$con->beginTransaction();
// execute all queries...
$con->commit();
}catch (Exception $e) {
$con->rollback();
// error message will come here...
}
Cheers!
$con = Doctrine_Manager::connection();
try {
$con->beginTransaction();
// execute all queries...
$con->commit();
}catch (Exception $e) {
$con->rollback();
// error message will come here...
}
Cheers!