magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.8k forks source link

I am using MR_createEntity for creating Entity, how to save it? #1272

Open vishal91 opened 7 years ago

vishal91 commented 7 years ago

I am creating object with MR_CreateEntity and i don't want to save it to persistence storage. But other part of application uses the managedObjectContext for fetching things. While i am on the viewcontroller where i have used MR_CreateEntity to populate it works fine. But as i move to other part and pass the object it crashes.

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to process pending changes before save. The context is still dirty after 1000 attempts. Typically this recursive dirtying is caused by a bad validation method, -willSave, or notification handler.'

Please help me with this.