Fix discriminator casing problem in Oracle
This commit is contained in:
parent
52431251cb
commit
ed516edf90
@ -284,7 +284,7 @@ class JoinedSubclassPersister extends AbstractEntityInheritancePersister
|
|||||||
}
|
}
|
||||||
|
|
||||||
$resultColumnName = $this->_platform->getSQLResultCasing($discrColumn);
|
$resultColumnName = $this->_platform->getSQLResultCasing($discrColumn);
|
||||||
$this->_rsm->setDiscriminatorColumn('r', $discrColumn);
|
$this->_rsm->setDiscriminatorColumn('r', $resultColumnName);
|
||||||
$this->_rsm->addMetaResult('r', $resultColumnName, $discrColumn);
|
$this->_rsm->addMetaResult('r', $resultColumnName, $discrColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ class SingleTablePersister extends AbstractEntityInheritancePersister
|
|||||||
$rootClass = $this->_em->getClassMetadata($this->_class->rootEntityName);
|
$rootClass = $this->_em->getClassMetadata($this->_class->rootEntityName);
|
||||||
$tableAlias = $this->_getSQLTableAlias($rootClass->name);
|
$tableAlias = $this->_getSQLTableAlias($rootClass->name);
|
||||||
$resultColumnName = $this->_platform->getSQLResultCasing($discrColumn);
|
$resultColumnName = $this->_platform->getSQLResultCasing($discrColumn);
|
||||||
$this->_rsm->setDiscriminatorColumn('r', $discrColumn);
|
$this->_rsm->setDiscriminatorColumn('r', $resultColumnName);
|
||||||
$this->_rsm->addMetaResult('r', $resultColumnName, $discrColumn);
|
$this->_rsm->addMetaResult('r', $resultColumnName, $discrColumn);
|
||||||
|
|
||||||
// Append subclass columns
|
// Append subclass columns
|
||||||
|
@ -558,7 +558,7 @@ class SqlWalker implements TreeWalker
|
|||||||
|
|
||||||
$columnAlias = $this->_platform->getSQLResultCasing($columnAlias);
|
$columnAlias = $this->_platform->getSQLResultCasing($columnAlias);
|
||||||
$this->_rsm->setDiscriminatorColumn($dqlAlias, $columnAlias);
|
$this->_rsm->setDiscriminatorColumn($dqlAlias, $columnAlias);
|
||||||
$this->_rsm->addMetaResult($dqlAlias, $this->_platform->getSQLResultCasing($columnAlias), $discrColumn['fieldName']);
|
$this->_rsm->addMetaResult($dqlAlias, $columnAlias, $discrColumn['fieldName']);
|
||||||
|
|
||||||
// Add foreign key columns to SQL, if necessary
|
// Add foreign key columns to SQL, if necessary
|
||||||
if ($addMetaColumns) {
|
if ($addMetaColumns) {
|
||||||
|
Loading…
Reference in New Issue
Block a user