[transfer-dev] Re: function is not of type transfer.com.TransferObject

2008-11-21 Thread Chris Peterson
you have to add an *object* there, not an ID. Try: cfset session.generalCAR.setissueType(transfer.get(issueType, type, form.issueTypeId) / when you run a 'set' against a related object, you have to 'set' the object, not the object's primary key value =) Chris Peterson On Fri, Nov 21, 2008 at

[transfer-dev] Re: function is not of type transfer.com.TransferObject

2008-11-21 Thread Chris Peterson
and sorry, I mis-typed in there: cfset session.generalCAR.setissueType(transfer.get(issueType, form.issueTypeId)) / something more like that =) On Fri, Nov 21, 2008 at 7:45 AM, Chris Peterson [EMAIL PROTECTED]wrote: you have to add an *object* there, not an ID. Try: cfset

[transfer-dev] Re: function is not of type transfer.com.TransferObject

2008-11-21 Thread Paul Marcotte
Gavin, I often add a method to my decorator that accepts the ID for a manytoone relationship and then sets the proper object relationship using that ID. Something like cffunction name=setIssueTypeId access=public output=false returntype=void cfargument name=IssueTypeId type=numeric

[transfer-dev] Re: function is not of type transfer.com.TransferObject

2008-11-21 Thread Chris Peterson
Paul, I do the very same thing, I just didnt want to blow up anyone's mind so early in the morning =) Chris On Fri, Nov 21, 2008 at 12:52 PM, Paul Marcotte [EMAIL PROTECTED] wrote: Gavin, I often add a method to my decorator that accepts the ID for a manytoone relationship and then sets

[transfer-dev] Re: function is not of type transfer.com.TransferObject

2008-11-21 Thread Mark Mandel
Gavin, It looks like you really need to read: http://docs.transfer-orm.com/wiki/Managing_Relationships_and_Compositions.cfm And I would highly recommend looking at the tBlog example app: http://docs.transfer-orm.com/wiki/Example_Code.cfm#tBlog Which outlines all the different composition

[transfer-dev] Re: function is not of type transfer.com.TransferObject

2008-11-21 Thread Gavin Baumanis
On Nov 22, 10:20 am, Mark Mandel [EMAIL PROTECTED] wrote: Gavin, It looks like you really need to read:http://docs.transfer-orm.com/wiki/Managing_Relationships_and_Composit... And I would highly recommend looking at the tBlog example