magicalpanda / MagicalRecord

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

Is condition of asset inside MR_resetDefaultContext correct? #1301

Open Igor-Palaguta opened 7 years ago

Igor-Palaguta commented 7 years ago

Hello, After migration from old MR version to new have crash inside MR_resetDefaultContext. This assert confuses a little as assert requires NSConfinementConcurrencyType == [defaultContext concurrencyType] but in comment Do not call this method on a confinement context. we can see that it should be !=

What is wrong? Condition or comment?

    NSAssert(NSConfinementConcurrencyType == [defaultContext concurrencyType], @"Do not call this method on a confinement context.");

https://github.com/magicalpanda/MagicalRecord/blob/master/MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext%2BMagicalRecord.m#L175

Thanks!