Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1877

[GH-376] De-deprecate transaction handling methods

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of lstrojny:

      Url: https://github.com/doctrine/doctrine2/pull/376

      Message:

      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()`.

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-376] was closed:
        https://github.com/doctrine/dbal/pull/376

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-376] was closed: https://github.com/doctrine/dbal/pull/376

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: