fencerj / sqlitepersistentobjects

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

Deleting always cascades #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create 2 objects with a dependency
2. Delete one object
3. Note that the second object also deletes

What is the expected output? What do you see instead?
When using a simple [myObj deleteObject] or any variation specifying a 
no-cascade, both 
objects still get deleted.

What version of the product are you using? On what operating system?
r132

Please provide any additional information below.
In SQLItePersistentObject.m, I've changed line 1170 to

if ([propClass isSubclassOfClass:[SQLitePersistentObject class]] && cascade)

This seems to resolve the problem. However, I claim no expertise as to what's 
going on here, so 
that may cause more problems than it solves.

Original issue reported on code.google.com by bluegu...@gmail.com on 17 Mar 2009 at 3:20

GoogleCodeExporter commented 8 years ago
Fixed in revision 133.

Original comment by mattjgal...@gmail.com on 26 Mar 2009 at 8:54