Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed KVC relationship mapping bug.

  • Loading branch information...
commit eaa78c2edc71cfd334941148017ba57b19cfcc46 1 parent c8ef686
@JRG-Developer authored
View
2  MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.m
@@ -126,7 +126,7 @@ - (void) MR_setRelationships:(NSDictionary *)relationships forKeysWithDictionary
NSRelationshipDescription *relationshipInfo = [relationships valueForKey:relationshipName];
NSString *lookupKey = [[relationshipInfo userInfo] valueForKey:kMagicalRecordImportRelationshipMapKey] ?: relationshipName;
- id relatedObjectData = [relationshipData valueForKey:lookupKey];
+ id relatedObjectData = [relationshipData valueForKeyPath:lookupKey];
if (relatedObjectData == nil || [relatedObjectData isEqual:[NSNull null]])
{
Please sign in to comment.
Something went wrong with that request. Please try again.