I am brand new to
Reactor, having just picked it up with MG Unity. I am getting a very
non-descript error thrown within the core/object.cfc file and I suspect it is
something in my xml object definition that is causing the issue. I have
been trying to find some documentation on the "proper" way and syntax to set
this up, but I have not had much luck. Can anybody take a look at this and
see what I am doing wrong?
I have a simple db
with 5 tables ... contact, address, state, country, and
contactAddress. The contact can have one or more addresses and vice versa
(hence the linking table contactAddress). The address then has a state and
a country. So what have I missed here ...
<objects>
<object name="contact">
<hasMany name="address">
<link name="contactAddress" />
</hasMany>
</object>
<object name="address">
<hasMany name="contact">
<link name="contactAddress" />
</hasMany>
<hasOne name="state">
<relate from="stateID" to="stateID" />
</hasOne>
<hasOne name="country">
<relate from="countryID" to="countryID" />
</hasOne>
</object>
</objects>
<object name="contact">
<hasMany name="address">
<link name="contactAddress" />
</hasMany>
</object>
<object name="address">
<hasMany name="contact">
<link name="contactAddress" />
</hasMany>
<hasOne name="state">
<relate from="stateID" to="stateID" />
</hasOne>
<hasOne name="country">
<relate from="countryID" to="countryID" />
</hasOne>
</object>
</objects>
Thanks
-- Jeff
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
