I figured these would be some of the responses, and that is why I stated " I know there are other ways to return the query via transfer, but this one intrigued me." :) Probably more that it intrigues me and was looking for a way to do it. If I already have my array of TO's used elsewhere and need an occasional place to convert it to a query, this seems like a better way to go for me. Allows me to keep my gateways cleaner and not polluted with a ton of TQL or <cfquery> calls just to fit every little need that is a little different. I realize also the TQL is cache'd by default also.
I am still refining over time the architecture of CB/CS/Transfer apps and what way I think it works best for me and performance and in a way that I can carry over from app to app, so this is one that popped up as something I would like to have. Thanks -------------- Dan O'Keefe On Mon, Jun 15, 2009 at 7:15 PM, Mark Mandel <[email protected]> wrote: > Yeah... I'm curious about the use case as well! ;o) What's the reason? > > Mark > > On Tue, Jun 16, 2009 at 5:57 AM, Chris Peterson <[email protected]>wrote: > >> Is there a reason that you did not just get a list rather than using >> objects to begin with, or just write plain jane SQL statements to get what >> you need? Raw SQL is still one of the fastest ways to get data from the >> database, objects and tql are really (imo) when you want your rich business >> object logic attached, or when you want to make use of the cache or >> relationships. If you just need a query, then <cfquery> can be your best >> friend (put it in an object decorator, which is still a great way to toss >> that logic around) >> >> Chris Peterson >> >> >> On 6/15/09 3:52 PM, "Dan O'Keefe" <[email protected]> wrote: >> >> I am sure this must have been discussed already, but a search did not >> yield any results. >> >> I was looking for a UDF to convert an array of transfer objects to a >> query. I was looking at http://cflib.org/udf/arrayOfObjectsToQuery which >> uses the CF getMetaData() function and is looking for getter functions. But, >> I am trying to use it in a TO o2m array, the getmetaData only returns the >> functions in the decorator. >> >> Anyone know of such an animal? I know there are other ways to return the >> query via transfer, but this one intrigued me. >> >> Thanks, >> >> Dan >> >> >> >> >> >> >> > > > -- > E: [email protected] > W: www.compoundtheory.com > > > > > --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---
