diff --git a/Incremental Store/EncryptedStore.m b/Incremental Store/EncryptedStore.m index aa7a382..639afa7 100755 --- a/Incremental Store/EncryptedStore.m +++ b/Incremental Store/EncryptedStore.m @@ -2086,7 +2086,7 @@ -(NSString *)tableNameForRelationship:(NSRelationshipDescription *)relationship - (NSString *)tableNameForPreviousRelationship:(NSRelationshipDescription *)relationship { NSRelationshipDescription *inverse = [relationship inverseRelationship]; - NSArray *names = [@[([relationship renamingIdentifier] ? [relationship renamingIdentifier] : [relationship name]), ([inverse renamingIdentifier] ? [inverse renamingIdentifier] : [inverse name])] sortedArrayUsingComparator:[self fixedLocaleCaseInsensitiveComparator]]; + NSArray *names = @[([relationship renamingIdentifier] ? [relationship renamingIdentifier] : [relationship name]), ([inverse renamingIdentifier] ? [inverse renamingIdentifier] : [inverse name])]; return [NSString stringWithFormat:@"ecd_%@",[names componentsJoinedByString:@"_"]]; } /// Create columns for both object IDs. @returns YES if the relationship.entity was first