From c1eff7045ac443b4682d652f0a2cbf72f2e604e6 Mon Sep 17 00:00:00 2001 From: Fedik Date: Sun, 7 Dec 2014 13:05:19 +0200 Subject: [PATCH] XML export driver: fix export options --- lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php index 1d539c9f2..6b53cbbaf 100644 --- a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php +++ b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php @@ -206,7 +206,8 @@ class XmlExporter extends AbstractExporter if (isset($field['options'])) { $optionsXml = $fieldXml->addChild('options'); foreach ($field['options'] as $key => $value) { - $optionsXml->addAttribute($key, $value); + $optionXml = $optionsXml->addChild('option', $value); + $optionXml->addAttribute('name', $key); } }