Skip to content
Browse files

Merge pull request #247 from JRG-Developer/Fixed_KVC_Relationship_Bug

Pull Request: Fixed KVC relationship mapping bug
  • Loading branch information...
2 parents 52139bd + eaa78c2 commit 272af9c4d9b19d1c7a9976f15bd507ade62cc0a0 @blackgold9 blackgold9 committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.m
View
2 MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.m
@@ -137,7 +137,7 @@ - (void) MR_setRelationships:(NSDictionary *)relationships forKeysWithObject:(id
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]])
{

0 comments on commit 272af9c

Please sign in to comment.
Something went wrong with that request. Please try again.