Symfony 1.2 propel & transaction

Using transactions could be really usefull and it is really easy to use so you have no excuse to not use them :

$con = Propel::getConnection(); //get propel connection
$con->beginTransaction();   //start transaction
//do stuff
$con->commit(); //commit transaction
//or
$con->rollback(); //rollback

Leave a Reply