Possible bug with ColdFusion 11 and ORM

29 views
Skip to first unread message

Andrew Scott

unread,
May 3, 2015, 10:10:18 AM5/3/15
to col...@googlegroups.com
Can anyone confirm this please, I have looked over this and can't see why this doesn't work.

Query

select new map(parent.Id as forumId, parent.name as name)
from  fbCat node, fbCat parent
where node.left BETWEEN parent.left AND parent.right AND node.forumId =:forumId
order by node.left

When I dump this I get a struct, that actually has the correct information within the struct. I would assume that I could do this

<cfloop array="#cats#" index="cat">
</cfloop>

There is an error that says name doesn't exist, yet in the dump it is clearly there. I am assuming this has something to do with it being an actual Java Object. So with that, how would I return the name in this method?



Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/

Luis Majano

unread,
May 3, 2015, 11:39:22 AM5/3/15
to col...@googlegroups.com, col...@googlegroups.com
 The problem is the case sensitivity of the map returned. The map is a native Java object so case sensitive applies


--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/CACLZGDmKH%2Bi2CbdeVqBpWD9Uf3eTBFoH9Y7W5Ld7%3D%3D2bswzy9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Scott

unread,
May 3, 2015, 1:21:02 PM5/3/15
to col...@googlegroups.com
I thought the same thing, but when I tried

<cfloop array="#cats#" index="cat">
</cfloop>

I also got the same error, at least that's what I thought. Since going back to this it seems to work again. I am guessing some weird caching happened.


Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/


Reply all
Reply to author
Forward
0 new messages