That answers my question because it is not in the same package - happy now thanks for your help
Gav "Gavin Stewart" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > hello out there > > Im have problems passing an object into another object. I keep getting an > error saying > The argument MYCLIENTGROUP passed to function test() is not of type > clientgroup. > the function looks like this within an object called Registrant > > <cffunction name = "test"> > <cfargument name="myClientgroup" type="clientgroup"> > <cfdump var="#myClientgroup#"/> > <cfabort > > </cffunction> > > The calling code looks like this > > <cfset ClientGroup = createObject("component", > "com.ebisprint.ClientsAndClientGroups.ClientGroup")> > <cfset ClientGroupDao = createObject("component", > "com.ebisprint.ClientsAndClientGroups.ClientGroupDao").init(dsn, > ClientGroup)> > <cfset PublicClientGroup = ClientGroupDao.load(publicClientGroupID)> > <cfset Registrant = createObject("component", > "com.ebisprint.registry.registrant")> > <cfset Registrant.test(PublicClientGroup)> > > The code in ClientGroupDao.cfc looks like this > > <cffunction name="load" returntype="clientgroup" access="public"> > <cfargument name="clientgroupid" type="numeric"> > <cfquery name="getClientGroup" datasource="#variables.dsn#"> > select * from clientgroup > where ClientGroupId = #arguments.ClientGroupId# > </cfquery> > <cfreturn loadClientgroup(getClientGroup)> > </cffunction> > > I dont understand why PublicClientGroup is not of type "ClientGroup" when it > is passed into Registrant.test when the return type in ClientGroupDao.load > is "ClientGroup" > when I dump "PublicClientGroup" it is a Clientgroup Object > > Has anyone had this before? > > Thanks for any help > Gav > > > > --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
