Agreed. Indeed, a cfquery object *is* an object. I find the cfquery object is particular perfect for views because it is read-only in terms of interacting with the source of the data.
I personally use the IBO approach and release the query object when ready to output the data - but that's just me. Dominic 2009/8/19 Judah McAuley <[email protected]> > What type of data structure you return is going to depend largely on > what you are using it for. Some purists might argue that you should > always return an array of objects because those objects have behavior > associated with them. This is true in some cases. If you have helper > methods on the objects that are useful in your application (like > getName that concatenates the adminUser's first name and last name) > then you should use the array of objects. If you are just going to > return a simple list of records and only use it for displaying the > information from the query, then you will likely be better off > returning a query and using that. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325542 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

