1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Merge pull request #156 from goetas/xmlassoc

Set association-key attribute in xml mapping
This commit is contained in:
Benjamin Eberlei 2011-10-19 00:03:55 -07:00
commit 753f75cfb9

View File

@ -139,6 +139,9 @@ class XmlExporter extends AbstractExporter
if (isset($field['columnName'])) {
$idXml->addAttribute('column', $field['columnName']);
}
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);