Does anyone know why I am geting this error?


Message The parameter DEFAULT to function setDefault is required but
was not passed in.
Detail
Extended Info
Tag Context F:\www\Reactor\data\mssql\ObjectDao.cfc (78)
F:\www\Reactor\data\mssql\ObjectDao.cfc (8)
F:\www\Reactor\core\objectFactory.cfc (104)
F:\www\Reactor\core\objectFactory.cfc (29)
F:\www\Reactor\reactorFactory.cfc (61)
F:\www\CCARC\Programs\controller\FacilitatorController.cfc (56)
F:\www\ModelGlue\ModelGlue.cfc (355)
F:\www\ModelGlue\ModelGlue.cfc (291)
F:\www\ModelGlue\ModelGlue.cfc (248)
F:\www\ModelGlue\ModelGlue.cfc (208)
F:\www\ModelGlue\ModelGlue.cfm (56)
F:\www\CCARC\Programs\index.cfm (27)


Controller Function
        <cffunction name="getProgramEvents" access="public" output="false"
returntype="ModelGlue.Core.Event">
                <cfargument name="event" type="ModelGlue.Core.Event" 
required="true">
                        <cfset local.EventGateway = 
variables.reactor.createGateway("event") />
                        <cfset local.query = local.EventGateway.createQuery() />
                        <cfset 
local.query.getWhere().isEqual("event","program_key",arguments.event.getValue('id'))
/>
                        <cfset local.events = 
local.EventGateway.getByQuery(local.query) />
                        <cfset arguments.event.setValue("Program",local.Events) 
/>
                <cfreturn  arguments.event />
        </cffunction>


Reactor XML
<reactor>
        <config>
                <dsn value="CCARC" />
                <type value="mssql" />
                <mapping value="/Reactor" />
                <mode value="always" />
        </config>
        <objects>
                <object name="activity">
                        <hasone name="sponsor">
                                <link name="sponsor" />
                        </hasone>
                </object>
                <object name="sponsor">
                        <hasmany name="activity">
                                <relate from="sponsor_key" to="sponsor_key" />
                        </hasmany>
                </object>
                

                
                <object name="program">
                        <hasone name="facilitator">
                                <link name="facilitator" />
                        </hasone>
                        <hasone name="coordinator">
                                <link name="coordinator" />
                        </hasone>
                </object>
                <object name="facilitator">
                        <hasmany name="program">
                                <relate from="facilitator_key" 
to="facilitator_key" />
                        </hasmany>
                </object>
                <object name="coordinator">
                        <hasmany name="program">
                                <relate from="coordinator_key" 
to="coordinator_key" />
                        </hasmany>
                </object>
        </objects>
</reactor>



SQL Server table:
CREATE TABLE [dbo].[EVENT] (
        [EVENT_KEY] [int] IDENTITY (1, 1) NOT NULL ,
        [PROGRAM_KEY] [int] NOT NULL ,
        [FACILITATOR_KEY] [int] NOT NULL ,
        [STARTS] [smalldatetime] NOT NULL ,
        [ENDS] [smalldatetime] NULL ,
        [STATUS] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
        [ORIG_UPDATE] [smalldatetime] NOT NULL ,
        [LAST_UPDATE] [smalldatetime] NOT NULL ,
        [IS_ACTIVE] [bit] NOT NULL
) ON [PRIMARY]
GO



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

Reply via email to