João,
This is my XML file:
<reactor>
<config>
<project value="Test" />
<dsn value="Test" />
<type value="mssql" />
<mapping value="/Test" />
<mode value="development" />
</config>
<objects>
<object name="Customer">
<hasOne name="Address">
<relate from="addressId" to="addressId" />
</hasOne>
</object>
</objects>
</reactor>
> Bas,
>
> Can you post your xml config file?
>
> 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]
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Bas van der Graaf
> Sent: terça-feira, 11 de Abril de 2006 14:08
> To: [email protected]
> Subject: [Reactor For CF] OBJECT.XMLCHILDREN is undefined
>
> Hi everyone,
>
> I downloaded reactor and it looks promising! The documentation is very clear
> and I had no problems starting up with reactor.
>
> But now I run into some serious problems. When adding relationships in de
> reactor.xml I get the following error:
>
> Element OBJECT.XMLCHILDREN is undefined in CONFIG.
>
> The error occurred in E:\websites\reactor\core\object.cfc: line 42 Called
> from E:\websites\reactor\core\object.cfc: line 27 Called from
> E:\websites\reactor\core\objectFactory.cfc: line 62 Called from
> E:\websites\reactor\reactorFactory.cfc: line 61 Called from
> E:\websites\reactor\index.cfm: line 4
>
> 40 :
> 41 : <!--- add/validate relationship aliases --->
> 42 : <cfset var relationships = Config.object.XmlChildren />
> 43 : <cfset var relationship = 0 />
> 44 : <cfset var aliasList = "" />
>
> When I change Config.object.XmlChildren into
> Config.reactor.objects.object.XmlChildren this problem solves but I keep
> running into problems with this xml object.
>
> What is wrong? Does anuone have a clue?
>
> Thanx!
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
>
> -- 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/
>
>
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/