[DMIG-34] Column names not escaped with backticks Created: 15/Feb/12  Updated: 15/Feb/12  Resolved: 15/Feb/12

Status: Resolved
Project: Doctrine Migrations
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Matthew Baggett Assignee: Benjamin Eberlei
Resolution: Invalid Votes: 0
Labels: None
Environment:

MySQL & Linux



 Description   

Generated from an Entity with a variable named access_key, with a column name of "key".

Generated MySQL table constructor fails, name is not escaped with backticks.



 Comments   
Comment by Benjamin Eberlei [ 15/Feb/12 ]

This is not a bug, you have to explicitly force escpaing manually by giving @Column(name="``key`") in your mapping (or xml/yml equivalent).

Automatic escaping leads to problems, that is why w edont support it.

Generated at Tue Jul 29 00:35:30 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.