Skip to content

Commit

Permalink
[FIX] Got a little too agressive with replacing NSSet.
Browse files Browse the repository at this point in the history
  • Loading branch information
rentzsch committed Jul 1, 2011
1 parent 4e9a045 commit a716c87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/machine.m.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -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$>

Expand Down

0 comments on commit a716c87

Please sign in to comment.