So for a direct call within a function in a controller I could use. <cfset var person = getModelGlue().getORMService().getTransfer().new("person") /> <cfset arguments.event.makeEventBean( person ) /> <cfset arguments.event.setValue( "newperson", person ) /> <cfset person.setOrgID(1)> <cfset person.setAddressID(1)> <cfset person.setPerson("Test")>
<cfset getModelGlue().getORMService().getTransfer().save(person)> Or is there a better, best practice approach? Neil -----Original Message----- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sent: 15 May 2007 06:31 To: CF-Talk Subject: Re: Transfer and Model-Glue On 5/14/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > Lol, I am sure Mr Corfield will be right in... But what you have noted so > far makes perfect sense. Who? Me? Once you have it wired up, you can use scaffolding or MG's generic DB messages or just go ahead and access Transfer directly (perhaps for complex queries, using TQL). Whatever you want. Back when I was at Adobe, my team used Transfer with Model-Glue. We used scaffolding to create basic admin functionality, then replaced it with generic DB messages and custom event-handlers. Then started to use direct getOrmService() calls to get hold of Transfer inside MG to do more complex stuff. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278156 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4