X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22calendrier%22%2C%22type=semaine%22%29%20.%20%22?a=blobdiff_plain;f=includes%2FSqlDataUpdate.php;h=6abbffb6a6c84e3cec779e6c57fefd46b64d76d6;hb=d87135d706004373b2cfdc4c588ce6d80358631f;hp=f6b183f65b7db6bdb43ce7b890b0d5bf81a18832;hpb=83540622dec2f2de998418c7407345368d517ca9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SqlDataUpdate.php b/includes/SqlDataUpdate.php index f6b183f65b..6abbffb6a6 100644 --- a/includes/SqlDataUpdate.php +++ b/includes/SqlDataUpdate.php @@ -24,6 +24,11 @@ /** * Abstract base class for update jobs that put some secondary data extracted * from article content into the database. + * + * @note: subclasses should NOT start or commit transactions in their doUpdate() method, + * a transaction will automatically be wrapped around the update. Starting another + * one would break the outer transaction bracket. If need be, subclasses can override + * the beginTransaction() and commitTransaction() methods. */ abstract class SqlDataUpdate extends DataUpdate {