reactor  

RE: [Reactor for CF] <cfif> error when using getIterator().getArray()

Doug Hughes
Sun, 14 Jan 2007 06:47:29 -0800

Look closely at your relate tags.  One is spelled "relat"

 

  _____  

From: [EMAIL PROTECTED] [EMAIL PROTECTED] On
Behalf Of Scott Stroz
Sent: Sunday, January 14, 2007 9:10 AM
To: reactor@doughughes.net
Subject: [Reactor for CF] <cfif> error when using getIterator().getArray()

 

I am trying to use object.getTitleIterator().getArray() for an object named
Publisher that has a one-many relationship with another object named Title.

I am getting the following error:

 Invalid CFML construct found on line 191 at column 25. 
ColdFusion was looking at the following text:

>

The CFML compiler was processing:

    * a cfif tag beginning on line 189, column 18.
    * a cfif tag beginning on line 189, column 18.

 
The error occurred in
C:\websites\assets\ORM\reactor\project\LLTest\Record\titleRecord.cfc: line
191
Called from C:\websites\assets\ORM\reactor\core\objectFactory.cfc: line 151
Called from C:\websites\assets\ORM\reactor\reactorFactory.cfc: line 26 
Called from C:\websites\assets\ORM\reactor\iterator\iterator.cfc: line 582
Called from C:\websites\assets\ORM\reactor\iterator\iterator.cfc: line 545
Called from C:\websites\utilities\LL\test.cfm: line 9

189 :         <cfif 
190 :             
191 :             >
192 :             
193 :             <cfset variables.children.publisher.load('') /> 



It seems as if the <cfif> that begins on page does not have any condition(s)
in it. 

I am using the Pubs Database that is in stalled with SQL server.

Here is my reactor.xml doc.

<objects>
      <object name="publishers" alias="publisher">
          <hasMany name="title"> 
                 <relate to="pub_id" from="pub_id" />
          </hasMany>
      </object>
      
      <object name="titles" alias="title">
          <hasOne name="publisher">
              <relat to="pub_id" from="pub_id" />
          </hasOne>
      </object>
  </objects>

When I do getTitleIterator().getQuery() I see a query of all the titles for
a given Publisher.  Does anyone see any glaring problems with my code, or
might this be a bug? 

-- 
Scott Stroz


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



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