RKManagedObjectDeletionOperation fetch requests are missing an init call #1809

Closed
matej opened this Issue Feb 25, 2014 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

matej commented Feb 25, 2014

The fetch requests created inside RKManagedObjectDeletionOperation's main method are missing an init call.

The following source code line in RKManagedObjectDeletionOperation.m should be changed from:

NSFetchRequest *fetchRequest = [NSFetchRequest alloc];

to:

NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];

I noticed this when I observed that some of my subentities were't correctly deleted by my deletion predicates (due to includesSubentities not being set to the default value of YES).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment