Warning - changing superclass from real to abstract
Posted: Fri Aug 07, 2009 2:29 pm
by Craig Shearer >> Mon, 2 Oct 2000 22:30:20 GMT
Just a word of warning about a bug that bit me rather badly this morning. This applies to 5.1.07, and is fixed in 5.1.08.
If you have a superclass with no instances, and subclasses of it with instances, then changing the superclass from real to abstract will cause all instances of the subclasses to be deleted. This caught me rather badly this morning - losing a large chunk of my test data out of my development system because of cascading deletes (deleting thousands of objects) when I changed a particularly vital superclass from real to abstract! (And no, I didn't have a backup I could use!!!!)
Craig.
Just a word of warning about a bug that bit me rather badly this morning. This applies to 5.1.07, and is fixed in 5.1.08.
If you have a superclass with no instances, and subclasses of it with instances, then changing the superclass from real to abstract will cause all instances of the subclasses to be deleted. This caught me rather badly this morning - losing a large chunk of my test data out of my development system because of cascading deletes (deleting thousands of objects) when I changed a particularly vital superclass from real to abstract! (And no, I didn't have a backup I could use!!!!)
Craig.