php - How to completed the full process or rollback to original form in yii? -
how completed full process or rollback original form in yii?
example:
have update 5 tables in database @ once. due abnormal termination 2 tables updated. want either update 5 tables or rollback original form.
i happy if answer me quickly.
put queries in try {} catch {} construction, , use transactions. if query fails whatever reason, rollback executed.
Comments
Post a Comment