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

        Elnur Abdurrakhimov created issue -
        Fabio B. Silva made changes -
        Field Original Value New Value
        Assignee Benjamin Eberlei [ beberlei ] Fabio B. Silva [ fabio.bat.silva ]
        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
        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
        Show
        Guilherme Blanco added a comment - Fixed in https://github.com/doctrine/doctrine2/commit/e43897916a001b6fe9cd8df27d6c9c272f41c854
        Guilherme Blanco made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13295 ] jira-feedback [ 15161 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15161 ] jira-feedback2 [ 17025 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17025 ] jira-feedback3 [ 19278 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1557, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: