PDA

View Full Version : Only autoSave in Store for destroy



gel87
5 Dec 2010, 9:51 AM
Hello,

is there a possibility activate autoSave only for a few events as destroying etc.? Or is it possible to call the save()-Method only to send the delete statement?

Condor
6 Dec 2010, 1:42 AM
You can call the 'save' method from the 'remove' event, but it will save all changes, including inserts and updates.

There is currently no way to only save the removed records (unless you copy some code from the save() method itself).