Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1236

GROUP BY does not work with functions

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC1
    • Fix Version/s: 2.2
    • Component/s: DQL
    • Security Level: All
    • Labels:
      None

      Description

      The following query fails with Cannot group by undefined identification variable (yes CAST-Function was added). Would be nice to have such a feature,

      SELECT ...
      FROM Task t
      ...
      WHERE
        ...
      GROUP BY
        CAST(t.scheduledDate as date)
      

        Activity

        Andreas Hörnicke created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Fix Version/s 2.x [ 10090 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.2-DEV [ 10157 ]
        Fix Version/s 2.x [ 10090 ]
        Guilherme Blanco made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Benjamin Eberlei [ beberlei ] Guilherme Blanco [ guilhermeblanco ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12760 ] jira-feedback [ 14923 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14923 ] jira-feedback2 [ 16787 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16787 ] jira-feedback3 [ 19040 ]

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Andreas Hörnicke
          • Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: