[html-formfu] RFC - Transactions for DBIC updates

Moritz Onken onken at houseofdesign.de
Wed Sep 2 14:39:51 GMT 2009


Hi Mario,

as far as I remember nested transactions result in a noop. Which means  
you can nest transactions and nothing bad will happen.

Other than that: what's wrong with $schema->txn_do { $form->model- 
 >update } ?

cheers,

moritz

Am 02.09.2009 um 14:10 schrieb Mario Minati:

> Hi @all,
>
> I need to use transactions for all my db update and create actions.  
> Currently FF:M:DBIC doesn't support this. I'd like to extend the  
> update method to start a transaction, if an attribute is defined  
> (e.g. 'use_transaction').
> To avoid nested transactions, as update is also called internally, I  
> would introduce a class variable which stores our transaction state.
>
> Do you agree with that?
>
> Greets,
>
> Mario





More information about the HTML-FormFu mailing list