1
0
mirror of synced 2025-01-09 10:37:09 +03:00

Merge pull request #897 from holtkamp/patch-3

Respected 'inheritanceType' at Entity level
This commit is contained in:
Guilherme Blanco 2014-01-05 11:31:25 -08:00
commit 7f30c31e98

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 && $metadata->inheritanceType !== ClassMetadataInfo::INHERITANCE_TYPE_NONE) {
$root->addAttribute('inheritance-type', $this->_getInheritanceTypeString($metadata->inheritanceType));
}
if ($metadata->discriminatorColumn) {