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/


Reply via email to