When Doctrine objects are deleted/updated inside the Doctrine transaction, object tags are not restored to pre-transaction start point if transaction was aborted or rollback-ed.
$conn = Doctrine_Manager::getInstance()->getCurrentConnection();
->where('id > 0')
// all Article tags should be postponed for removal
// postponed tags is removed physically here
catch (Exception $e)
// the postponed tags removal should be canceled
Why Doctrine does not supports fully transaction savepoints explained on http://wiki.sahanafoundation.org/.
Then, it makes no sense to implement tag updates rollback/commit within savepoints.
Adds Doctrine transaction support (first draft implementation) - full…
…y functional, fixed all tests. #18
Final changes to handle tags in transactions #18
- Custom exception classes to handle turned off sf_cache and lack of
context is removed
- Refreshes Doctrine_Query_Cachetaggable::execute to look similar to
- Adds some missing tests
- Update README