From 4845745337dbbed5eead25c3062a07103b38649f Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Wed, 15 Sep 2010 14:16:53 -0300 Subject: [PATCH] [DDC-802] Fixed wrong variable reference in XML exporter. --- lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php index 097e77083..75c0ca3e8 100644 --- a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php +++ b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php @@ -109,7 +109,7 @@ class XmlExporter extends AbstractExporter foreach ($metadata->table['uniqueConstraints'] as $unique) { $uniqueConstraintXml = $uniqueConstraintsXml->addChild('unique-constraint'); - $uniqueConstraintXml->addAttribute('name', $name); + $uniqueConstraintXml->addAttribute('name', $unique['name']); $uniqueConstraintXml->addAttribute('columns', implode(',', $unique['columns'])); } }