Is it possible to save an object before I run dbDeleteObject so that it can be restored. I am working on a script where I may want to restore an instance I deleted.
Is the only way to do this brute force by saving all of the instances properties?
Example code:
inst = car( cvid->instances); Get my instance
backupInst = inst
dbDeleteObject(inst); delete inst
Both inst->?? and backupInst return:
-> dbGetq: object is a purged/freed object - db:0x2057b31b
What I want to do next:
dbCreateObject(backupInst); A function that doesn't exist.....