Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

DataImport was failing when a ordered one to many child relationship …

…was being processed. Previously, the importer was calling (ex: relationship name was say videos) videosSet instead of just videos, fixed now and will just call videos
  • Loading branch information...
commit e64b3925d6c012d81d6d6c91e8663d9a7272c53d 1 parent 477049d
@cheneveld authored
View
3  MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.m
@@ -101,8 +101,7 @@ - (void) MR_addObject:(NSManagedObject *)relatedObject forRelationship:(NSRelati
if ([relationshipInfo respondsToSelector:@selector(isOrdered)] && [relationshipInfo isOrdered])
{
//Need to get the ordered set
- NSString *selectorName = [[relationshipInfo name] stringByAppendingString:@"Set"];
- relationshipSource = [self performSelector:NSSelectorFromString(selectorName)];
+ relationshipSource = [self performSelector:NSSelectorFromString([relationshipInfo name])];
addRelationMessageFormat = @"addObject:";
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.