Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2740

[GH-819] Fixes a Fatal Error when using a subexpression in parenthesis

    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 vbourdeix:

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

      Message:

      When some dql contains a subselect with expression in parenthesis, the
      expression of the $simpleSelectExpression parameter given to
      walkSimpleSelectExpression is an instance of AST\ParenthesisExpression.
      Before this commit, this case defaulted to
      $this->walkEntityIdentificationVariable($expr) where $expr is supposed
      to be a string. A fatal error was then yielded.

        Activity

        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-819] was closed: https://github.com/doctrine/doctrine2/pull/819
        Show
        Marco Pivetta added a comment - Merged: https://github.com/doctrine/doctrine2/commit/95ad926c9532e69d72be3dbee2f18f847e8d3f06

          People

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

            Dates

            • Created:
              Updated:
              Resolved: