What does your reactor.xml look like? 

Teddy

On 7/6/06, Lola Lee <[EMAIL PROTECTED]> wrote:
I've been going through the Reactor tutorial.  I have a MySQL database, and right now I'm stuck at the point where I need to configure relationships in Reactor.  Here's what I have in CustomerRecord.cfm:

<!--- create the reactor factory --->
<cfset Reactor = CreateObject("Component", "reactor.reactorFactory ").init(expandPath("reactor.xml")) />

<!--- creatre a customer record --->
<cfset CustomerRecord = Reactor.createRecord("Customer") />

<cfdump var = "#CustomerRecord#">
<br />
<cfdump var="#CustomerRecord.getAddressRecord()#" />

However, at this line "<cfdump var="#CustomerRecord.getAddressRecord()#" />", it errors out, with the following message:

The method 'getAddressRecord' could not be found in component /Library/WebServer/Documents/ScratchReactor/Data/Record/CustomerRecordmysql.cfc.

Check to ensure that the method is defined, and that it is spelled correctly.
 
The error occurred in /Library/WebServer/Documents/ScratchReactor/CustomerRecord.cfm: line 9
7 : <cfdump var = "#CustomerRecord#">
8 : <br />
9 : <cfdump var="#CustomerRecord.getAddressRecord()#" />


Looking at the dump for CustomerRecords, I'm not seeing "getAddressRecord".  The referenced file does exist.  What is causing this to occur?  I do have records for Address, Customer and Users.

I think I'm using the latest version . . .


Lola J. Lee Beno



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



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

Reply via email to