mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #376] [MERGED] De-deprecate transaction handling methods #8101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/376
Author: @lstrojny
Created: 6/16/2012
Status: ✅ Merged
Merged: 7/4/2012
Merged by: @beberlei
Base:
master← Head:de-deprecate-transaction-methods📝 Commits (1)
3881e12De-deprecate transaction handling methods📊 Changes
1 file changed (+0 additions, -6 deletions)
View changed files
📝
lib/Doctrine/ORM/EntityManager.php(+0 -6)📄 Description
As discussed with @beberlei over IRC, deprecating transaction handling methods make the API cleaner but testing of Entity Manager dependent components much messier. Also suggesting to use
$em->getConnection()->beginTransaction()feels like a violation of the law of demeter.Therefore this pull request would remove the deprecation warnings from
EntityManager::beginTransaction(),EntityManager::commit(),EntityManager::rollback().🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.