1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Fix for entity generator discriminator column

This commit is contained in:
Attila Fulop 2013-08-28 18:26:16 +03:00
parent f634ba343c
commit 5669aaf4a3

View File

@ -953,7 +953,7 @@ public function __construct()
protected function generateDiscriminatorColumnAnnotation($metadata)
{
if ($metadata->inheritanceType != ClassMetadataInfo::INHERITANCE_TYPE_NONE) {
$discrColumn = $metadata->discriminatorValue;
$discrColumn = $metadata->discriminatorColumn;
$columnDefinition = 'name="' . $discrColumn['name']
. '", type="' . $discrColumn['type']
. '", length=' . $discrColumn['length'];