[Catalyst] Q: DBIC transaction around Catalyst action chain

Len Jaffe lenjaffe at jaffesystems.com
Mon Dec 7 14:40:05 GMT 2009


On Mon, Dec 7, 2009 at 6:42 AM, Bernhard Graf <catalyst4 at augensalat.de>wrot=
e:

>
> User data is fetched in C:C:User::id() (and stored onto the stash), item
> data is fetched in C:C:Item::id() and finally (if all checks are
> successfull) item data is written in C:C:Item::save().
>
> How can I wrap the whole action chain into a DBIC transaction?
>
I would imaging that you would not want to wrap the whole chain in a
transaction, only the logic inside the save action that updates the
database.

You shouldn't need to wrap the SELECTs in transactions.

Len.
-- =

lenjaffe at jaffesystems.com
614-404-4214
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091207/c4600=
b56/attachment.htm


More information about the Catalyst mailing list