Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3, Git Master
-
Component/s: None
-
Security Level: All
-
Labels:None
-
Environment:MySQL
Description
I have submitted a PR here, fixing part of this issue: https://github.com/doctrine/dbal/pull/166
However, it fails when UPDATE or INSERT is used. I'm using a very simple, and common, entity name: Group. Doctrine is failing to escape this in various situations, causing queries to fail in MySQL due to reserved keywords.
Can you try using the quoting strategy in master? By defining an '@Table(name="`Group`")' on your entity you should be able to fix this issue by yourself... Anyway, this is only available in latest master.
Please give it a try and let us know.