Warning - changing superclass from real to abstract

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Warning - changing superclass from real to abstract

Postby ConvertFromOldNGs » 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.

Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 27 guests