<objects>
<object name="Customer">
 <hasOne name="Address">
      <relate from="addressId" to="addressId" />
 </hasOne>
</object>
</objects>
</reactor>

Try putting the object node inside of objects parent.  I have not checked
the latest Reactor if this still applies, but I saw that as indicative in
the past.

Teddy

On 1/15/07, Doug Hughes <[EMAIL PROTECTED]> wrote:

It should work.  That looks correct at a glance.  Try deleting everything
under /reactor/project/scratch and see if the next execution functions
correctly please.

Doug

On 1/15/07, Seb Duggan <[EMAIL PROTECTED]> wrote:
>
>  I've just started tinkering with Reactor today, and like what I've seen
> so far...
>
> However, I've had a problem with database relationships. I'm working
> through the tutorial (latest version, at  livedocs.reactorframework.com),
> against build 4.08.
>
>
> All works well on single table queries; but when I try a relationship,
> it falls down.
>
>
> The tables are defined as specified in the tutorial (on MS SQL 2000). My
> config file is as follows:
>
>
> <reactor>
> <config >
>   <project value ="Scratch" />
>   < dsn value ="Scratch" />
>   < type value= "mssql" />
>   <mapping value="/ScratchData" />
>   <mode value ="development" />
> </ config>
>
>
> <object name="Customer" >
>   <hasOne name="Address" >
>        <relate from ="addressId" to="addressId" />
>   </hasOne>
> </ object>
> </reactor>
>
>
> and I am using the following code to test it:
>
>
> <!--- create the reactorFactory --->
> <cfset Reactor = CreateObject( "Component", " reactor.reactorFactory"
> ).init(expandPath ("reactor.xml" )) />
>
>
> <!--- create a customerRecord --->
> <cfset CustomerRecord = Reactor.createRecord("Customer" ) />
>
>
> <cfdump var="#CustomerRecord#">
>
>
> But the resulting component dump doesn't include the getAddress or
> setAddress methods.
>
>
> Any ideas?
>
>
>
>
> Seb
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- -- --
> Reactor for ColdFusion Mailing List
> [email protected]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- -- --
>



--
Doug Hughes
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
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
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to