|
Typo fixed. Doug From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Billings Doug the typo in the error message is in
/reactor/base/abstractMetadata.cfc line 167 if you havent dug it up
already. My issue is resolved. I was missing the link value. <objects> On 2/10/06, Brian
Billings <[EMAIL PROTECTED]>
wrote: Looking closer I noticed the error says "does have
have'. At first I thought it said "does not have". From: Brian Billings [mailto: [EMAIL PROTECTED]]
All, Im getting this now.. I compared my Reactor.xml syntax to the
help doc and it seems right.
<cffunction name="ListActivities" access="public"
output="false" returntype=" ModelGlue.Core.Event">
<cfargument name="event" type="ModelGlue.Core.Event"
required="true">
<cfset var local = structnew() />
<cfset ActivityGateway = variables.reactor.createGateway("Activity")
/>
<cfset query = ActivityGateway.createQuery() />
<cfset query.join("Activity","Sponsor") />
<cfset ActivityList = ActivityGateway.getByQuery(query) />
<cfset arguments.event.setValue("Activities",ActivityList)
/>
<cfreturn arguments.event />
</cffunction> <reactor>
<config>
<dsn value="CCARC" />
<type value="mssql" />
<mapping value="/Reactor" />
<mode value="always" />
</config>
<objects>
<object name="activity">
<hasone name="sponsor" alias="sponsor">
<relate from="sponsor_id" to="sponsor_id" />
</hasone>
</object>
<object name="sponsor">
<hasmany name="activity">
<relate from="sponsor_id" to="sponsor_id" />
</hasmany>
</object>
</objects> </reactor> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Michael Lantz Brian, <cfset
ActivityGateway = variables.reactor.createGateway("Activity") /> <cfset
query = ActivityGateway.createQuery() /> <cfset
query.join("Activity","Sponsor") /> <cfset
ActivityList = ActivityGateway.getByQuery(query) /> Now, you will have access to the fields in both tables
(Activity and Sponsor) in the "ActivityList" object. Hope that makes sense. Michael
-- Reactor for ColdFusion Mailing List -- [email protected] --
Archives at http://www.mail-archive.com/reactor%40doughughes.net/
|
- Reactor For CF output relational recordset Brian Billings
- RE: Reactor For CF output relational recordset Michael Lantz
- RE: Reactor For CF output relational recordset Brian Billings
- RE: Reactor For CF output relational recordset Brian Billings
- RE: Reactor For CF output relational recordset Doug Hughes
- RE: Reactor For CF output relational recordset Michael Lantz
- RE: Reactor For CF output relational recordset Brian Billings
- Re: Reactor For CF output relational recordset Brian Billings
- [Reactor For CF] RE: Reactor For CF output rel... Doug Hughes

