All,

I'm having a problem with the alias. What am I doing wrong?

This works:

        <object name="EVENTS">
                <hasmany name="EVENT_ROLE">
                        <link name="EVENT_ROLE" />
                </hasmany>
        </object>

<cfset test = reactor.createGateway('EVENTS') />

This does not work (error below).

        <object name="EVENTS" alias="TEST">
                <hasmany name="EVENT_ROLE">
                        <link name="EVENT_ROLE" />
                </hasmany>
        </object>

<cfset test = reactor.createGateway('TEST') />


----------------
Error Occurred While Processing Request  
Invalid Object Type  
The Type argument must be one of: table, view  
  
The error occurred in F:\MARC\Reactor\core\object.cfc: line 263
Called from F:\MARC\Reactor\data\mssql\ObjectDao.cfc: line 23
Called from F:\MARC\Reactor\data\mssql\ObjectDao.cfc: line 7
Called from F:\MARC\Reactor\core\objectFactory.cfc: line 104
Called from F:\MARC\Reactor\core\objectFactory.cfc: line 29
Called from F:\MARC\Reactor\reactorFactory.cfc: line 61
Called from F:\MARC\core\controller\SystemController.cfc: line 53
Called from F:\MARC\ModelGlue\ModelGlue.cfc: line 355
Called from F:\MARC\ModelGlue\ModelGlue.cfc: line 244
Called from F:\MARC\ModelGlue\ModelGlue.cfc: line 216
Called from F:\MARC\ModelGlue\ModelGlue.cfm: line 56
Called from F:\MARC\index.cfm: line 27
 
261 :                   <cfthrow type="reactor.object.InvalidObjectType"
262 :                           message="Invalid Object Type"
263 :                           detail="The Type argument must be one of:
table, view" />
264 :           </cfif>



 

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


Reply via email to