1
0
mirror of synced 2024-12-12 22:36:02 +03:00

Merge pull request from fulopattila122/master

Fix for entity generator discriminator column
This commit is contained in:
Guilherme Blanco 2013-08-28 09:15:08 -07:00
commit 78c3016f95

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