I keep hitting Core Data faults when updating and deleting objects and Id like to understand why. The logic essentially fetches the entities, updates a few fields and saves. No faults are hit. The entities are then consumed for some business logic and when thats done, the entities are deleted one by one using the following code: [context deleteObject:[context objectWithID:entity.objectID]]; performed within the context block. Why does the line of code trigger fault?
I did end up moving this to use NSBatchDeleteRequest where I passed it an array of object IDs and that got rid of the faults but just would like to understand why the faults got triggered in the first place.