Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1231

In ObjectHydrator->_getEntity(...) looking for the discriminator should be in uppercase

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      On line 204:
      $discrColumn = $this->_rsm->metaMappings[$this->_rsm->discriminatorColumns[$dqlAlias]];

      $this->_rsm->discriminatorColumns[$dqlAlias] is in lowercase, whereas $this->_rsm->metaMappings[$this->_rsm->discriminatorColumns[$dqlAlias]] is in uppercase.

      $discrColumn cannot be assigned.

      A simple fix could be:
      $discrColumn = $this->_rsm->metaMappings[strtoupper($this->_rsm->discriminatorColumns[$dqlAlias])];

        Activity

        Alexandre Mathieu created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.1 [ 10022 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12753 ] jira-feedback [ 14920 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14920 ] jira-feedback2 [ 16784 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16784 ] jira-feedback3 [ 19037 ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Alexandre Mathieu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: