fencerj / sqlitepersistentobjects

sqlitepersistentobjects --- A Sqlite ORM Framework
0 stars 0 forks source link

[PATCH] multi-level delete cascade #79

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you have a persistent object with multiple levels of children, e.g:

City ---> Suburb ----> Street

Then calling deleteObjectCascade:YES on City will delete all its Suburb 
records, but not the Street records (as deleteObjectCascade is no called on 
each Suburb).

This patch adds that functionality.

(P.S I'm somewhat of an objective-C newb, so please excuse me if I've 
overlooked something or made an obvious mistake here).

Thanks,

Nik

Original issue reported on code.google.com by munkywre...@gmail.com on 4 Dec 2009 at 3:51

Attachments: