Here's a sample code that is from the wiki (many-to-many):
------------
<cfscript>
post = transfer.new("post.Post");
post.setTitle("My Title");
post.setBody("The body of my post");
post.setDateTime(Now());
category = transfer.get("system.Category",1);
post.addCategory(category);
transfer.save(post);
</cfscript>
-----------
I was reading the sample code and from what I understand/think, this
only applies to a new record. Is this true?
If yes, can someone help with a sample code when updating a existing
record? I am unsure if I need to rerun the addCategory(category) part
of the code when updating a record.
Thank you.
--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
You received this message because you are subscribed to the Google Groups
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---