Here's a simple query

<cfset cgw = reactor.createGateway("Customer") />
<cfset q = cgw.createQuery() />
<cfset q.returnObjectField("Customer", "ZipCode") />
<cfdump var="#cgw.getByQuery(q)#">

This should return only the ZipCode field, however it returns all fields
from the Customer object.
My reactor config for the Customer looks like this

    <object name="Customer">
      <field source="User" field="FranchiseId" />
    </object>

Removing the field makes the query function as expected.. .bad field!

I've not got time to look into this now, and the internals of Reactor's OO
queries makes my brain hurt, but just thought i'd report it..

Chris


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

Reply via email to