-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
With doctrine/orm 3.1: Error: Expected Doctrine\ORM\Query\TokenType::T_FROM, got '.' #335
Comments
We're using the bundle ourselves on several projects with ORM 3.1 so no clue why your is special. I would recommend dumping the constructed DQL at or around |
Thanks for getting back! I found the cause - my bad, forgot to mention that I'm using SQL Server not mySQL and obviously SQL Server is not compatible with the partial-syntax this bundle is creating. This would be a fix that works with SQL Server: |
@shades684 mentioned the |
It should be noted that the test suite currently does trigger this error when ORM 3.0+ is installed. Parking this issue until doctrine/orm#8471 is resolved, if they do reintroduce it in 3.2 we might as well keep it in (removing our partial logic is not trivial). For now consider ORM 3.0/3.1 unsupported. |
Stale issue message |
Wake. 3.2 didn't get this yet but it's still intended to return in Doctrine. |
Stale issue message |
I encountered this error with Doctrine ORM 3.2, but upgrading to 3.3.0 resolved the issue. I assume this is due to the improvements in handling PARTIAL queries introduced in version 3.3.0. |
Thanks, good to hear :) Added a conflict section to remediate this. |
I can confirm that with orm 3.3 the error is gone. (I get some phpstan-issues with it, but that's another story :)) |
Yeah I've been trying to fix the test suite from 8.1 to 8.4 with all dependencies but that's proving challenging... |
Hi,
I tried updating my project to use doctrine/orm 3.1 today (from 2) and now I'm getting the following error:
"[Syntax Error] line 0, col 20: Error: Expected Doctrine\ORM\Query\TokenType::T_FROM, got '.'"
The datatable I'm using is pretty straightforward, this is my code:
I have tried to remove one column after the other to check whether that makes a difference, but it doesn't.
This is the full stacktrace:
Doctrine\ORM\Query\QueryException:
[Syntax Error] line 0, col 20: Error: Expected Doctrine\ORM\Query\TokenType::T_FROM, got '.'
I tried to downgrade doctrine/orm to 3.0 but the error remains.
The text was updated successfully, but these errors were encountered: