Skip to content

Ordered child relationship fails in DataImport. #430

Closed
wants to merge 1 commit into from
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:";
}
}
Something went wrong with that request. Please try again.