New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Expected Doctrine\ORM\Query\Lexer::T_FROM, got EntityName since upgrade to 2.6.0 #6932
Comments
What's the generated DQL string for that query builder? |
how do i get it ? |
Instead of |
On master, QB generates following DQL:
So there is obviously missing alias for MIN() function. |
"HIDDEN" is a reserved DQL keyword
…On 21 Dec 2017 17:35, "Michael Moravec" ***@***.***> wrote:
On master, QB generates following DQL:
SELECT e, MIN(o.startTime) AS HIDDEN FROM AppBundle:Event e LEFT JOIN e.occurences o WHERE (o.startTime BETWEEN CURRENT_DATE() AND :date ) AND e.published = true AND e.place = :place GROUP BY e.id
So there is obviously missing alias for MIN() function.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6932 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJakMI1jPG4A6MrbXMtaOrZSgPm1YZwks5tCojhgaJpZM4RJ-e3>
.
|
Yes, but the query is valid according to 2.5 EBNF:
"AS HIDDEN" is fine and the alias should be optional as well (which sounds a bit strange though). This is not a QueryBuilder bug which generates same DQL as on 2.5, but a parser bug. LanguageRecognitionTest test case:
Works with 2.5, fails with 2.6. |
Not, the EBNF has |
Fixed by #7077 |
I have the following builder request
it used to work fine, but since upgrade to 2.6.0 I got the error
It seems to work if I add
FROM
like this :is it a known issue ? (or something wrong in my original code ?)
The text was updated successfully, but these errors were encountered: