[DDC-1557] SimpleSelectExpression does not accept DQL functions Created: 22/Dec/11  Updated: 29/Dec/11  Resolved: 29/Dec/11

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: DQL
Affects Version/s: 2.2
Fix Version/s: 2.3
Security Level: All

Type: Bug Priority: Major
Reporter: Elnur Abdurrakhimov Assignee: Fabio B. Silva
Resolution: Fixed Votes: 0
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 '('



 Comments   
Comment by Benjamin Eberlei [ 29/Dec/11 ]

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

Comment by Benjamin Eberlei [ 29/Dec/11 ]

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

Comment by Guilherme Blanco [ 29/Dec/11 ]

Fixed in https://github.com/doctrine/doctrine2/commit/e43897916a001b6fe9cd8df27d6c9c272f41c854

Generated at Thu Jul 31 03:41:34 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.