Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1856

[GH-364] set initialized => true only after actually initializing

    Details

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

      Description

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

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

      Message:

      I have a situation where I run into the EntityNotFound exception because of a filter which filters out entities with "deleted = 1". I catch this exception and display an error. However, in the next loop, when I try to catch the error again, it is not thrown, as _initialized_ is already set to true. The entity, however, is not in fact initialized

        Activity

        Hide
        Doctrine Bot added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: