diff --git a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php index ccbbfc3be..1a8fde184 100644 --- a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php +++ b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php @@ -155,6 +155,10 @@ class XmlExporter extends AbstractExporter $idXml->addAttribute('column', $field['columnName']); } + if (isset($field['length'])) { + $idXml->addAttribute('length', $field['length']); + } + if (isset($field['associationKey']) && $field['associationKey']) { $idXml->addAttribute('association-key', 'true'); }