Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2937

[GH-920] SingleScalarHydrator reports ambiguous error.

    Details

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

      Description

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

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

      Message:

      In the previous situation there is a combined test (A or B) which result in the same error message. However the error message does not fit with condition B (see code).

      Looking at the function description the function should return a _a single scalar value_.

      On a side note:
      1. it's weird that this method call is used gatherScalarRowData() as it seems to fetch an entire row.
      2. there is no function to fetch a single row.

        Activity

        Hide
        Flip added a comment -

        Should have paid more attention when i submit the previous PR 4 months ago

        Show
        Flip added a comment - Should have paid more attention when i submit the previous PR 4 months ago
        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-920] was closed: https://github.com/doctrine/doctrine2/pull/920
        Show
        Guilherme Blanco added a comment - Done as of https://github.com/doctrine/doctrine2/commit/1488a509b24c918e2321ca736895e6418c17e7ad

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: