Correct, specifying a field tag in reactor.xml causes OO queries to ignore
returnObjectField/s
A side effect of this is that setDistinct won't work as expected either (i
was generating a distinct list of Customer zipcodes when i ran into this
issue)

Chris

2008/8/19 Doug Hughes <[EMAIL PROTECTED]>

> Chris,
>
> So you're saying that if you you use the OO queries and only want to get
> that one ZipCode field that this works, but only if you haven't specified a
> field tag in your reactor xml?
>
> --
> Doug Hughes, President
> Alagad Inc.
> [EMAIL PROTECTED]
> 888 Alagad4 (x300)
> Office: 919-550-0755
> Fax: 888-248-7836
>
>
> On Mon, Aug 18, 2008 at 10:18 AM, Chris Blackwell <
> [EMAIL PROTECTED]> wrote:
>
>> 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/
>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>> -- --
>
>
>
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [EMAIL PROTECTED]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>


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

Reply via email to