Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2307

Fields not wrapped in back ticks when removing entity.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • 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.

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Alex Mamut
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: