Skip to content

Loading…

DDC-1231: In ObjectHydrator->_getEntity(...) looking for the discriminator should be in uppercase #1840

Closed
doctrinebot opened this Issue · 5 comments

2 participants

@doctrinebot

Jira issue originally created by user iksela:

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])];

@doctrinebot

Comment created by @beberlei:

What version of the code are you using? I fixed this problem yesterday on git master.

@doctrinebot

Comment created by iksela:

2.1.0RC1 downloaded this morning from the website.

@doctrinebot

Comment created by @beberlei:

ah yes, please update to Git Master then or wait for the RC2 release happening this week.

@doctrinebot

Comment created by @beberlei:

This was fixed on master

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.1 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.