Rollback Object

0
I am creating an Object and changing the object attribute value after that am trying to rollback the same object, the value modified is not reverted to original value instead of that object itself moved out of scope/deleted.   Am not able to understand the behavior, could someone help me to share the core idea about use of rollback object.
asked
1 answers
1

Hi there!

 

The rollback will revert all changes to the last persisted state of your object. If it is an new object, the object will be delete. If you previously committed the object in your logic (transaction) it will revert the object to that state. Alternatively, if you did not commit the object in your logic, it will revert to the state that is in the database

 

Hope it helps!

answered