Teddy Payne
Fri, 08 Dec 2006 11:14:33 -0800
<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>
If you notice, there is a <objects> around the individual <object> tags.
You forgot an XML node.
Teddy
On 12/8/06, Andrew Davis <[EMAIL PROTECTED]> wrote:
Hi Folks, Im sure this is something dumb, but ive given up for now...
[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>
<object name="tblAdvTrack">
<hasOne name="tblStreamMedia">
<relate from="media_id" to="media_id" />
</hasOne>
</object>
</reactor>
[index.cfm]
<cfset Reactor = CreateObject("Component",
"reactor.reactorFactory").init(expandPath("reactor.xml")) />
<cfset StatsRecord = Reactor.createRecord("tblAdvTrack") />
<cfdump var="#StatsRecord#" expand="no">
[?!]
I see the dump for StatsRecord fine, but...
According to the documentation, shouldnt i see gettblStreamMedia and
settblStreamMedia in the dump for StatsRecord?
Ive doubleschecked case and spelling. Not sure why not working.
Im just starting with this, and am not sure why not working. Any help
would be much appreciated, and please be specific, as I am not too
familiar with reactor (yet).
Thanks in advance,
Andrew
--
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/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
-- <cf_payne /> Adobe Certified ColdFusion MX 7 Developer Atlanta CFUG (ACFUG): http://www.acfug.org -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List reactor@doughughes.net Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --