Scott,
Besides the typo in your userFacility object, you should also correct your facility object,
<object name="facility">
<hasMany name="userFacility">
<link name="userfacility" />
</hasMany>
</object>Should be:
<object name="facility">
<hasMany name="user"><link name="userfacility" />
</hasMany>
</object>
João Fernandes
Dep. Informática - Área de Desenvolvimento
Cofina media
Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Scott Stroz
Sent: terça-feira, 23 de Maio de 2006 1:57
To: [email protected]
Subject: [Reactor For CF] Issue with using 'linked' tables
I have 3 tables, User, Facility and userFacility. userFacility has 3 rows, userFacilityID, userid and facilityID. I am runnign into an error when using <link /> to join user or facility tables to userFacility. I get the following error:
Element XMLATTRIBUTES.FROM is undefined in a Java object of type class coldfusion.xml.XmlNodeMap referenced as
Here is a snippett of Raector.xml
<object name="user">
<hasMany name="userFacility">
<link name="userFacility" />
</hasMany>
</object>
<object name="facility">
<hasMany name="userFacility">
<link name="userfacility" />
</hasMany>
</object>
<object name="userFacility
<hasOne name="user">
<relate from="userid" to="userid" />
</hasOne>
<hasOne name="facility">
<relate from="facid" to="facid" />
</hasOne>
</object>
I have grabbed the latest from SVN (257 I think) and I am still getting this error. Anyone have any ideas?
Thanx in advance!
--
Scott Stroz
Boyzoid.com
___________________________
Some days you are the dog,
Some days you are the tree. -- 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/
--
Scott Stroz
Boyzoid.com
___________________________
Some days you are the dog,
Some days you are the tree. -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

