1
0
mirror of synced 2025-01-23 08:41:41 +03:00

Respected 'inheritanceType' at Entity level

It was (incorrectly) fetched from Table-level.
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html#annref-inheritancetype
This commit is contained in:
Menno Holtkamp 2014-01-05 18:41:55 +01:00
parent 69cad4079d
commit 797fb9c34a

View File

@ -69,8 +69,8 @@ class XmlExporter extends AbstractExporter
$root->addAttribute('schema', $metadata->table['schema']);
}
if (isset($metadata->table['inheritance-type'])) {
$root->addAttribute('inheritance-type', $metadata->table['inheritance-type']);
if ($metadata->inheritanceType) {
$root->addAttribute('inheritance-type', $this->_getInheritanceTypeString($metadata->inheritanceType));
}
if ($metadata->discriminatorColumn) {