diff --git a/templates/machine.h.motemplate b/templates/machine.h.motemplate index 34202b20..66cb54bb 100644 --- a/templates/machine.h.motemplate +++ b/templates/machine.h.motemplate @@ -159,8 +159,8 @@ NS_ASSUME_NONNULL_BEGIN - (<$Relationship.mutableCollectionClassName$>*)primitive<$Relationship.name.initialCapitalString$>; - (void)setPrimitive<$Relationship.name.initialCapitalString$>:(<$Relationship.mutableCollectionClassName$>*)value; <$else$> -- (<$Relationship.destinationEntity.managedObjectClassName$>*)primitive<$Relationship.name.initialCapitalString$>; -- (void)setPrimitive<$Relationship.name.initialCapitalString$>:(<$Relationship.destinationEntity.managedObjectClassName$>*)value; +- (<$if Relationship.optional$>nullable <$endif$><$Relationship.destinationEntity.managedObjectClassName$>*)primitive<$Relationship.name.initialCapitalString$>; +- (void)setPrimitive<$Relationship.name.initialCapitalString$>:(<$if Relationship.optional$>nullable <$endif$><$Relationship.destinationEntity.managedObjectClassName$>*)value; <$endif$> <$endforeach do$> @end