[DDC-2307] Fields not wrapped in back ticks when removing entity. Created: 20/Feb/13  Updated: 01/May/13  Resolved: 01/May/13

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

Type: Bug Priority: Major
Reporter: Alex Mamut Assignee: Benjamin Eberlei
Resolution: Cannot Reproduce Votes: 0
Labels: None


 Description   

Field definition:

/** @Id @Column(type="string", name="`key`") */
    private $_key;

When removing entity mysql.log shows this:

36 Query     START TRANSACTION
                   36 Query     DELETE FROM `settings` WHERE section = 'Test123' AND key = 'test12312'
                   36 Query     rollback

It seems that on a remove statement the field names aren't being wrapped in back ticks.



 Comments   
Comment by Benjamin Eberlei [ 14/Mar/13 ]

Which version are you using? This has been fixed at some point

Comment by Benjamin Eberlei [ 01/May/13 ]

Closing because of no feedback

Generated at Mon Nov 24 08:21:13 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.