1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

Merge pull request #444 from goetas/xmlfix

Fixed some typo error in XML Exporter
This commit is contained in:
Benjamin Eberlei 2012-10-05 14:16:59 -07:00
commit a5e043e6e6

View file

@ -76,10 +76,12 @@ class XmlExporter extends AbstractExporter
} }
if ($metadata->discriminatorColumn) { if ($metadata->discriminatorColumn) {
$discriminatorColumnXml = $root->addChild('discriminiator-column'); $discriminatorColumnXml = $root->addChild('discriminator-column');
$discriminatorColumnXml->addAttribute('name', $metadata->discriminatorColumn['name']); $discriminatorColumnXml->addAttribute('name', $metadata->discriminatorColumn['name']);
$discriminatorColumnXml->addAttribute('type', $metadata->discriminatorColumn['type']); $discriminatorColumnXml->addAttribute('type', $metadata->discriminatorColumn['type']);
$discriminatorColumnXml->addAttribute('length', $metadata->discriminatorColumn['length']); if (isset($metadata->discriminatorColumn['length'])) {
$discriminatorColumnXml->addAttribute('length', $metadata->discriminatorColumn['length']);
}
} }
if ($metadata->discriminatorMap) { if ($metadata->discriminatorMap) {