Skip to content

Commit

Permalink
Merge branch 'DDC-2280' into 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed May 9, 2013
2 parents 98d3847 + 818d3d2 commit e0feccc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php
Expand Up @@ -140,9 +140,15 @@ public function exportClassMetadata(ClassMetadataInfo $metadata)
if (isset($field['columnName'])) {
$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');
}

if ($idGeneratorType = $this->_getIdGeneratorTypeString($metadata->generatorType)) {
$generatorXml = $idXml->addChild('generator');
$generatorXml->addAttribute('strategy', $idGeneratorType);
Expand Down

0 comments on commit e0feccc

Please sign in to comment.