2010年11月4日星期四

[fw-db] Nasted transactions

When I have nasted transactions I get exception 'PDOException' with message
'There is already an active transaction' in...

Sometimes it's hard to track transactional methods in models, and there is
no way to detect if a transaction is started already.

Why don't add a flag in db adapter when start transaction, and set it on
begin, reset it on roll back and commit?
http://framework.zend.com/issues/browse/ZF-870

What are the best practices for organizing transactions in zf app?
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Nasted-transactions-tp3028213p3028213.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: