Merge pull request #770 from fulopattila122/master
Fix for entity generator discriminator column
This commit is contained in:
commit
78c3016f95
1 changed files with 1 additions and 1 deletions
|
@ -953,7 +953,7 @@ public function __construct()
|
||||||
protected function generateDiscriminatorColumnAnnotation($metadata)
|
protected function generateDiscriminatorColumnAnnotation($metadata)
|
||||||
{
|
{
|
||||||
if ($metadata->inheritanceType != ClassMetadataInfo::INHERITANCE_TYPE_NONE) {
|
if ($metadata->inheritanceType != ClassMetadataInfo::INHERITANCE_TYPE_NONE) {
|
||||||
$discrColumn = $metadata->discriminatorValue;
|
$discrColumn = $metadata->discriminatorColumn;
|
||||||
$columnDefinition = 'name="' . $discrColumn['name']
|
$columnDefinition = 'name="' . $discrColumn['name']
|
||||||
. '", type="' . $discrColumn['type']
|
. '", type="' . $discrColumn['type']
|
||||||
. '", length=' . $discrColumn['length'];
|
. '", length=' . $discrColumn['length'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue