From b53f4fd4cc82e4d25f8325a750e66c293fa000ef Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Thu, 9 May 2013 18:15:41 +0200 Subject: [PATCH] [DDC-2280] length attribute in was not converted. --- lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php | 4 ++++ 1 file changed, 4 insertions(+) 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'); }