Your snapshot would be the TO (Transfer Object). On any Reactor Record
object call "_getTo()" and dump that, e.g.:

<cfdump var="#Partner._getTo()#">

/Cody 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Short
Sent: Tuesday, February 28, 2006 3:51 PM
To: [email protected]
Subject: [Reactor For CF] Snapshot of User Record

Hi,

I'm starting to put Reactor into practice on a new section of a site I'm
working on, and ran into a snag in my normal development flow :). I like to
dump a snapshot of an object's instance data to make sure that I have what I
need in there as I'm developing. I created a new Partner Record, and I can
pull data out successfully, but I didn't see any method for dumping the
instance data for the object. I have this:

<!--- Create a Partner Record --->
<cfparam name="URL.id" default="0" />
<cfset Partner = Reactor.CreateRecord("Partner") /> <cfset
Partner.setPartnerID(URL.id) /> <cfset Partner.Load() />

I'd like to have something like this:

<!--- Create a Partner Record --->
<cfparam name="URL.id" default="0" />
<cfset Partner = Reactor.CreateRecord("Partner") /> <cfset
Partner.setPartnerID(URL.id) /> <cfset Partner.Load() /> <cfdump
var="#Partner.getSnapShot()#" label="Partner Instance Data" />

Is this something that could easily be added to the reactor core files?

Thanks,

Dan



 

-- 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/


Reply via email to