Save temporary data


How can I rollback changes made in a detail table (edit, delete in a gridview) to it’s original state, when the user does not click the save button in the master table.

It’s not easy.

Yii doesn’t have a built-in feature to support that kind of “commit/rollback” or “undo/redo” functionality on the database operations.