The 'argumentname' argument passed to the 'Methodename 'function is not of type 'Dto name'
Hi, there!
Sr for that question, because it should be pretty easy to answer, but i'm totally new to coldfusion
and googled for about an hour now. I have a orm DTO.cfc:
<cfcomponent entityname="testDTO" persistent="true" table="test" schema="informix" output="false">
<!---- properties ---->
</cfcomponent>
and have a service Methode in test.cfc
<!---- Add test---->
<cffunction name="createTest" returntype="testDTO" access="remote">
<cfargument name="item" type="testDTO" required="true" />
<!---- Auto-generated method
Insert a new record in test---->
<cfset entitysave(item) />
<!---- return created item ---->
<cfreturn item/>
</cffunction>
i try to call via the the <cfInvoke>-Tag
<cfset lieferant = entityNew('test')>
<cfinvoke
component="#request.componentbase#.test"
method="createTest"
item="#test#"
returnvariable="test">
but the error
'The ITEM argument passed to the createLieferant function is not of type testDTO.'
appears on function call. I just can't find a way to tell cf that lieferant is of type testDTO.
When i type the methodes parameter to struct the methode call works well.
Thanks for your help in advance!
Florian
