Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-832

Not quoted class name when updating entity

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA4
    • Fix Version/s: 2.0-RC1
    • Component/s: None
    • Security Level: All
    • Labels:
      None
    • Environment:
      postgresql 8.4 php 5.3.2

      Description

      When trying to update an entity which have a reserved name. Doctrine doesn't quoted its name.

      On Doctrine\ORM\Persisters\BasicEntityPersister, _updateTable, $tableName is directly used to create the sql. We may use $this->_class->getQuotedTableName($this->_platform) instead ?

      I'm going to propose a merge for that on github.

        Issue Links

          Activity

          Paul Fariello created issue -
          Benjamin Eberlei made changes -
          Field Original Value New Value
          Link This issue relates to DBAL-57 [ DBAL-57 ]
          Benjamin Eberlei made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Roman S. Borschel [ romanb ] Benjamin Eberlei [ beberlei ]
          Resolution Fixed [ 1 ]
          Benjamin Eberlei made changes -
          Workflow jira [ 11986 ] jira-feedback [ 14603 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback [ 14603 ] jira-feedback2 [ 16467 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 16467 ] jira-feedback3 [ 18720 ]

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Paul Fariello
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: