reactor  

[Reactor for CF] has one object not working

Andrew Davis
Mon, 11 Dec 2006 08:37:25 -0800

after i fix the xml, I see no difference.

According to the documentation, shouldnt i see gettblStreamMedia and
settblStreamMedia in the dump for StatsRecord? Do i need to do something
special to get this to work?

All help much appreciated. Thanks in advance,
Andrew Davis


[tables]

tblAdvTrack
-----------
media_id
hitcount


tblStreamMedia
--------------
media_id
title


[setup]

<reactor>
       <config>
               <project value="advtracking" />
               <dsn value="tempdb" />
               <type value="mssql" />
               <mapping value="/scratch" />
               <mode value="development" />
       </config>
<objects>
       <object name="tblAdvTrack">
               <hasOne name="tblStreamMedia">
               <relate from="media_id" to="media_id" />
               </hasOne>
       </object>
</objects>
</reactor>



[index.cfm]

<cfset Reactor = CreateObject("Component",
"reactor.reactorFactory").init(expandPath("reactor.xml")) />


<cfset StatsRecord = Reactor.createRecord("tblAdvTrack") />

<cfdump var="#StatsRecord#" expand="yes">


-- 

Andrew Davis
avagraphique

mail::[EMAIL PROTECTED]
phone::716.830.8631


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
reactor@doughughes.net
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --