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