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.
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - Which version are you using? This has been fixed at some point
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Awaiting Feedback [ 10000 ]
        Benjamin Eberlei made changes -
        Status Awaiting Feedback [ 10000 ] Open [ 1 ]
        Hide
        Benjamin Eberlei added a comment -

        Closing because of no feedback

        Show
        Benjamin Eberlei added a comment - Closing because of no feedback
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-2307, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: