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

        Alex Mamut created issue -
        Alex Mamut made changes -
        Field Original Value New Value
        Description Field definition:
        <code>
        /** @Id @Column(type="string", name="`key`") */
            private $_key;
        </code>

        When removing entity mysql.log shows this:
        <code>
        36 Query START TRANSACTION
                           36 Query DELETE FROM `settings` WHERE section = 'Test123' AND key = 'test12312'
                           36 Query rollback
        </code>

        It seems that on a remove statement the field names aren't being wrapped in back ticks.
        Field definition:
        {code}
        /** @Id @Column(type="string", name="`key`") */
            private $_key;
        {/code}

        When removing entity mysql.log shows this:
        {code}
        36 Query START TRANSACTION
                           36 Query DELETE FROM `settings` WHERE section = 'Test123' AND key = 'test12312'
                           36 Query rollback
        {/code}

        It seems that on a remove statement the field names aren't being wrapped in back ticks.
        Alex Mamut made changes -
        Description Field definition:
        {code}
        /** @Id @Column(type="string", name="`key`") */
            private $_key;
        {/code}

        When removing entity mysql.log shows this:
        {code}
        36 Query START TRANSACTION
                           36 Query DELETE FROM `settings` WHERE section = 'Test123' AND key = 'test12312'
                           36 Query rollback
        {/code}

        It seems that on a remove statement the field names aren't being wrapped in back ticks.
        Field definition:
        {code}
        /** @Id @Column(type="string", name="`key`") */
            private $_key;
        {code}

        When removing entity mysql.log shows this:
        {code}
        36 Query START TRANSACTION
                           36 Query DELETE FROM `settings` WHERE section = 'Test123' AND key = 'test12312'
                           36 Query rollback
        {code}

        It seems that on a remove statement the field names aren't being wrapped in back ticks.
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Awaiting Feedback [ 10000 ]
        Benjamin Eberlei made changes -
        Status Awaiting Feedback [ 10000 ] Open [ 1 ]
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: