magicalpanda / MagicalRecord

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

FIX MR_importFromObject when primaryAttribute type mismatch #1231

Open ansinyutin opened 8 years ago

ansinyutin commented 8 years ago

when importing json with "uid" property of type - NSString to NSManagedObject with primaryAttribute "uid" of type - NSNumber MR_importFromObject creates duplicate of already existing object

Coeur commented 5 years ago

Please provide a unit test that demonstrates the issue, thank you.