Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3031

ORM does not understand constants in SELECT clause

    Details

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

      Description

      It seems that doctrine do not understand constants in SELECT clause.
      I try to execute such a query:

      SELECT e.id, 'abc' as flag FROM SomeEntity

      And I get this error:

      [Semantical Error] line 0, col 40 near 'parent, p.weight,': Error: Invalid PathExpression. Must be a StateFieldPathExpression.

      There was an issue like this a long time ago: DDC-1077. It's written that it was Resolved, but it does not work.

        Activity

        Hide
        Roman added a comment -

        Sorry, that was my mistake. It works fine!

        Show
        Roman added a comment - Sorry, that was my mistake. It works fine!

          People

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

            Dates

            • Created:
              Updated:
              Resolved: