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 types, and how to utilise them. If you also read: http://docs.transfer-orm.com/wiki/Generated_Methods.cfm You will see that the arguments required for the methods generated do not match up to what you are passing in. Mark On Fri, Nov 21, 2008 at 11:30 PM, Gavin Baumanis <[EMAIL PROTECTED]> wrote: > > Hi There , > > I seem to be having ongoing issue with getting transfer to to the most > simplest of tasks. > > If I dump the object I see all the methods that are automatically > created for me via transfer - so far so good and I can see the methods > for setting / getting the fields I have declared in my XML. > > Specifically I see a method "setisuetype" > > issue type is a manytoone with the following declaration in my XML; > > <object name="issueType" table="tbl_issueType"> > <id name="id_tbl_issueType" type="numeric" /> > <property name="issueType" type="string" /> > </object> > > <object name="generalCAR" table="tbl_CAR"> > <manytoone name="issueType"> > <link to="car.issueType" column="issueTypeId" /> > </manytoone> > ... > </object> > > Now if I have the following in my form's action page; > > <cfset session.generalCAR.setissueType(form.issueTypeId) /> > > then I get the following error; > > The TRANSFER argument passed to the setissueType function is not of > type transfer.com.TransferObject. > If the component name is specified as a type of this argument, its > possible that a definition file for the component cannot be found or > is not accessible. > > Huh? > If I dump the session.generalCAR, then the method is there.. > > I tried by creating an issueType object with the following; > session.issueType = application.transfer.new("car.issueType"); > > And then I can successfully do this; > <cfset session.issueType.setissueType(form.issueTypeId) /> > > But from my previous post(thread) that seems to have goteen a little > butchered when Kevin's email client misbehaved.... > I was given the advice that I didn't need to do this and that I should > ust use the generalCAR.setissueType method, > > Have I missed something? mis-understood the replies - or am I just a > completely mad nutter! > > > > -- E: [EMAIL PROTECTED] W: www.compoundtheory.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
