[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


Field definition:

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

When removing entity mysql.log shows this:

                   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.

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 Tue Oct 06 12:41:16 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.