Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2655

Query#getOneOrNullResult lets NoResultExceptions through

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      Query#execute throws NullResultException sometimes, depending on $hydrationMode and getOneOrNullResult doesn't catch them. Pending pull request adds a test and workaround/fix.

        Activity

        Show
        David Stensland added a comment - https://github.com/doctrine/doctrine2/pull/780
        Hide
        Doctrine Bot added a comment -

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

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

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            David Stensland
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: