Maybe I'm missing something here (I'm not great with transactions), but I don't see the point in wrapping calls to Reactor objects in <cftransaction>'s. Surely calling save() is safe, and if save's cascade to linked objects won't they also be safe?
> <cftransaction> > <cfset something.save() /> > <cfset somethingelse.save() /> > </cftransaciton> Would using the example above actually allow you to rollback changes made by the save methods? Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Hughes Sent: 20 April 2006 11:48 To: [email protected] Subject: RE: [Reactor For CF] Fwd: MYSQL4L cftransactions around multiple reactor inserts/updates/queries? AAAAAH Then THAT must be the problem. Sorry to give misinformation. (I didn't test before sending that message.) Any thoughts on this? I don't think I should remove the transaction tags. As far as I know, there's no way to tell you're already in a transaction so I don't think I can find a hack to let you wrap calls to CFCS in transactions. Doug -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Corfield Sent: Thursday, April 20, 2006 1:52 AM To: [email protected] Subject: Re: [Reactor For CF] Fwd: MYSQL4L cftransactions around multiple reactor inserts/updates/queries? On 4/19/06, Doug Hughes <[EMAIL PROTECTED]> wrote: > The issue is this: CF won't let you do something like: > > <cftransaction> > <cfset something.save() /> > <cfset somethingelse.save() /> > </cftransaciton> > > I wish it did, but it doesn't. Sure it will. It hadn't used to allow it but it does now. I think it was introduced in CF7. However, you can't nest transactions (CF used to allow nested transaction tags but they just didn't work properly - now transactions can span function calls but in order to make them work, they had to disallow nested transaction tags). -- Sean A Corfield -- http://corfield.org/ Got frameworks? "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- 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/

