diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index 27610405..82ffd6ed 100644 --- a/templates/machine.m.motemplate +++ b/templates/machine.m.motemplate @@ -26,11 +26,11 @@ return (<$managedObjectClassName$>ID*)[super objectID]; } -+ (<$Relationship.immutableCollectionClassName$> *)keyPathsForValuesAffectingValueForKey:(NSString *)key { - <$Relationship.immutableCollectionClassName$> *keyPaths = [super keyPathsForValuesAffectingValueForKey:key]; ++ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key { + NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key]; <$foreach Attribute noninheritedAttributes do$><$if Attribute.hasDefinedAttributeType$><$if Attribute.hasScalarAttributeType$> if ([key isEqualToString:@"<$Attribute.name$>Value"]) { - <$Relationship.immutableCollectionClassName$> *affectingKey = [<$Relationship.immutableCollectionClassName$> setWithObject:@"<$Attribute.name$>"]; + NSSet *affectingKey = [NSSet setWithObject:@"<$Attribute.name$>"]; keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey]; }<$endif$><$endif$><$endforeach do$>