Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1557

SimpleSelectExpression does not accept DQL functions

    Details

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

      Description

      SELECT m 
      FROM MealBundle:Meal m 
      WHERE m.user = :user OR m.user IN (
          SELECT IDENTITY(s.to) 
          FROM SubscriptionBundle:Subscription s 
          WHERE s.from = :user
      )
      

      [Syntax Error] line 0, col 82: Error: Expected Doctrine\ORM\Query\Lexer::T_FROM, got '('

        Activity

        Show
        Guilherme Blanco added a comment - Fixed in https://github.com/doctrine/doctrine2/commit/e43897916a001b6fe9cd8df27d6c9c272f41c854
        Hide
        Benjamin Eberlei added a comment -

        Related Pull Request was closed: https://github.com/doctrine/doctrine2/pull/246

        Show
        Benjamin Eberlei added a comment - Related Pull Request was closed: https://github.com/doctrine/doctrine2/pull/246
        Hide
        Benjamin Eberlei added a comment -

        This issue is referenced in Github Pull-Request GH-246
        https://github.com/doctrine/doctrine2/pull/246

        Show
        Benjamin Eberlei added a comment - This issue is referenced in Github Pull-Request GH-246 https://github.com/doctrine/doctrine2/pull/246

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Elnur Abdurrakhimov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: