Doug, to work with reactor you'll need to use the final instance of your TO.
What do you get when using
<cfset myTo = reactorFactory.createTo("myObject")> ?
its a myObjectToDBMS.cfc instance so that's the one you can transfer back &
forward and be the most compatible.
I would prefer to use the projectTo but the customTo is the one you can
transfer safely and can integrate easely.
Imagine that you transfer from Flex > CF, a new TO instance to insert in the
DB.
You could use:
<cfset myrecord = reactorFactory.createRecord("myobject")>
<cfset myrecord._setto(arguments.myFlex2InstanceTO)>
<cfset myrecord.save()>
it would work like a charm but the problem is, when you'll retrieve the same to
from CF to Flex since _getto() returns a customTo and not a projectTo so, in
the flex side you wouldn't get the instance translated.
For the switching part from one database to another, it's quite simple the
upgrade in flex part. I have all my AS3 VO generated based on my reactor.xml
file and just have to change the remoteClass registration since my VO's name
wouldn't change and compile my app again.
João Fernandes
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Doug Arthur
Sent: Wed 19-Jul-06 12:45 AM
To: [email protected]
Subject: Re: [Reactor for CF] Flex 2 & Reactor/ColdSpring
I'm finding that when I modify the xsl for to.custom.xsl, it adds the
<cfproperty /> tags to the myObjectTomssql.cfc rather than just
myObjectTo.cfc, is this correct behavior? That also means I need to set my
RemoteClass(alias='path.to.myObjectTomssql')
That doesn't seem right, I'd rather use the one without the mssql in the
event of an entire site switch over from mssql to another db.
Thanks!
- Doug
On 7/13/06, João Fernandes <[EMAIL PROTECTED]> wrote:
>
> I'm doing the same using the Plugin Object added by Doug (THANK YOU
> AGAIN).
>
> Basically my FDS plugin converts any query to array of TO's and if needed
> populates their related objects if using Lazy Loading. My plans are to also
> populate only the related Objects with their ID (for performance).
>
>
> João Fernandes
> Dep. Informática - Área de Desenvolvimento
> Cofina media
>
> Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
> Tel (+351) 213 185 200 . Fax (+351) 213 540 370
> [EMAIL PROTECTED]
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Tom Chiverton
> Sent: quinta-feira, 13 de Julho de 2006 9:04
> To: [email protected]
> Subject: Re: [Reactor for CF] Flex 2 & Reactor/ColdSpring
>
> On Wednesday 12 July 2006 23:13, João Fernandes wrote:
> > You cannot bind them to the "project" TO's that's why I told you that
> > there was a catch, you need to move the <cfproperty tags to the
> > customToDB.cfc
>
> Yeah.
> What we've done is to write dedicated CFC VO, and then wrap results that
> are returned in a method to populate (Arrays of) them from (lists of)
> Reactor TO.
>
> --
> Tom Chiverton
>
> ****************************************************
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England
> and Wales under registered number OC307980 whose registered office address
> is at St James's Court Brown Street Manchester M2 2JF. A list of members is
> available for inspection at the registered office. Any reference to a
> partner in relation to Halliwells LLP means a member of Halliwells LLP.
> Regulated by the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged. If you are not the addressee you
> must not read it and must not use any information contained in nor copy it
> nor inform any person other than Halliwells LLP or the addressee of its
> existence or contents. If you have received this email in error please
> delete it and notify Halliwells LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- -- Reactor for ColdFusion Mailing List [email protected] Archives
> at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [email protected]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>
>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
<<winmail.dat>>
