Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rentzsch/mogenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
rentzsch committed Jul 21, 2011
2 parents 68599c6 + 4cab306 commit a581486
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/machine.m.motemplate
Expand Up @@ -71,7 +71,11 @@
<$if Relationship.isToMany$>
- (<$Relationship.mutableCollectionClassName$>*)<$Relationship.name$>Set {
[self willAccessValueForKey:@"<$Relationship.name$>"];
<$if Relationship.isOrdered$>
<$Relationship.mutableCollectionClassName$> *result = (<$Relationship.mutableCollectionClassName$>*)[self mutableOrderedSetValueForKey:@"<$Relationship.name$>"];
<$else$>
<$Relationship.mutableCollectionClassName$> *result = (<$Relationship.mutableCollectionClassName$>*)[self mutableSetValueForKey:@"<$Relationship.name$>"];
<$endif$>
[self didAccessValueForKey:@"<$Relationship.name$>"];
return result;
}
Expand Down

0 comments on commit a581486

Please sign in to comment.