You know, this smells funny, doesn't it?  

Chris - give it a try with the code in the docs.  If that doesn't work move
the shared key to the relationship (where it seems it belongs) and try that.


Plz report back and let us know if the docs are fubared.

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jura Khrapunov
Sent: Friday, July 21, 2006 4:19 AM
To: [email protected]
Subject: RE: [Reactor for CF] SharedKey

Christopher,
as I recently learnt from the Reactor's liveDocs "sharedKey" argument
belongs to the <object> tag, you can read more at
http://livedocs.reactorframework.com/hasOne_tag.htm. Example of code
included. I didn't use it yet but the feature itself looks appealing.
Best
===============
Jura Khrapunov
Web manager
Bratislava Regional Centre 
United Nations Development Programme
www.undp.org/europeandcis

[EMAIL PROTECTED] wrote:

> I've read through the current docs in SVN that discuss the
> 'sharedKey' attribute, but the docs are very confusing. I'm
> ready to implement and wanted to double-check my thinking on this.
> 
> I have a case that exactly mirrors the example given in the
> HasOne tag documentation in SVN: A base User table plus other
> tables with data specific to various User types (Consultant,
> for example). The object relationship is that a Consultant is-a User.
> 
> Reactor doesn't use the "is-a" syntax, but the docs on the
> HasOne tag indicate that this can be handled using the
> 'sharedKey' attribute. What is unclear is where that
> attribute needs to go. In the docs, it is actually placed on
> the object tag (but this doesn't match the DTD). The HasOne
> tag is in both the User object definition and the Consultant
> object definition. I'm guessing, based on the fact that User
> needs to be saved first when you save a Consultant, that the
> sharedKey attribute really needs to go on the HasOne tag
> inside the Consultant object definition, like this:
> 
> <object name="User">
>     <hasOne name="Consultant">
>         <relate from="ID" to="userID" />
>     </hasOne>
> </object>
> 
> <object name="Consultant">
>     <hasOne name="User" sharedKey="true">
>         <relate from="userID" to="ID" />
>     </hasOne>
> </object>
> 
> Is this the correct way to do it?
> 
> Christopher Bradford
> Alive!, LLP
> 
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- -- -- -- -- -- --
> 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/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --



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

Reply via email to