Transaction di Propel
$con = Propel::getConnection(EventPeer::DATABASE_NAME); try { $con->begin(); UserFavoriteEventPeer::deleteAllForEvent($this->getId()); EventPeer::doDelete($this, $con); $con->commit();} catch (PropelException $e) { $con->rollback(); throw $e;}
Referensi
Referensi
Propel Transactions With Symfony, http://stereointeractive.com/blog/2008/02/29/propel-transactions-with-symfony/