Code snippets for symfony 1.x

Navigation

Snippets tagged "propel transaction"

Use transaction in the model

$con = Propel::getConnection();
try
{
  $con->begin();
 
  // do something
 
  $con->commit();
}
catch (Exception $e)
{
  $con->rollback();
  throw $e;
}
by Fabien Potencier on 2006-05-20, tagged propel  transaction 
(2 comments)