Skip to content

Commit

Permalink
[DDC-802] Fixed wrong variable reference in XML exporter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Blanco committed Sep 15, 2010
1 parent da63bad commit 4845745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php
Expand Up @@ -109,7 +109,7 @@ public function exportClassMetadata(ClassMetadataInfo $metadata)

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']));
}
}
Expand Down

0 comments on commit 4845745

Please sign in to comment.