mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Change the default value for deletesOrphanedObjects to YES in RKManagedObjectRequestOperation
This commit is contained in:
@@ -141,7 +141,7 @@
|
||||
|
||||
Please see the above discussion of 'Deleting Managed Objects for `DELETE` requests' for more details.
|
||||
|
||||
**Default**: `NO`
|
||||
**Default**: `YES`
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL deletesOrphanedObjects;
|
||||
|
||||
|
||||
@@ -102,6 +102,7 @@ static NSURL *RKRelativeURLFromURLAndResponseDescriptors(NSURL *URL, NSArray *re
|
||||
self = [super initWithHTTPRequestOperation:requestOperation responseDescriptors:responseDescriptors];
|
||||
if (self) {
|
||||
self.savesToPersistentStore = YES;
|
||||
self.deletesOrphanedObjects = YES;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user