Skip to content

Commit

Permalink
Merge pull request #897 from holtkamp/patch-3
Browse files Browse the repository at this point in the history
Respected 'inheritanceType' at Entity level
  • Loading branch information
guilhermeblanco committed Jan 5, 2014
2 parents 69cad40 + fc2b998 commit 7f30c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public function exportClassMetadata(ClassMetadataInfo $metadata)
$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) {
Expand Down

0 comments on commit 7f30c31

Please sign in to comment.