[Dbix-class] Correct way to rollback txn_scope_guard
Toby Corkindale
toby at dryft.net
Thu Jul 25 07:51:38 GMT 2013
On 23 July 2013 20:56, Peter Rabbitson <rabbit+dbic at rabbit.us> wrote:
> On Tue, Jul 23, 2013 at 06:58:56PM +1000, Toby Corkindale wrote:
>> Hi,
>> What is the correct way to rollback when you're using a
>> txn_scope_guard, and it's intentional, and you'd rather avoid getting
>> a scary warning message printed to the logs?
>>
>
> There currently is no official way to do that. This is mainly because
> codeflow taking advantage of explicit rollbacks is almost invariably a
> design mistake.
I know, and believe me I've said as much. :(
If there's no official way to do a rollback via it, I'll see if I can
make the kludge work another way.. FormHandler does have a way to
disable the update call, so I'll give that a whirl instead.
Thanks,
Toby
--
Turning and turning in the widening gyre
The falcon cannot hear the falconer
Things fall apart; the center cannot hold
Mere anarchy is loosed upon the world
More information about the DBIx-Class
mailing list