1
0
mirror of synced 2025-01-18 14:31:40 +03:00

orphanRemoval default is false

This commit is contained in:
Asmir Mustafic 2011-12-16 16:16:52 +01:00
parent 24432bd0ab
commit 289c186de5

View File

@ -221,8 +221,7 @@ class XmlExporter extends AbstractExporter
$associationMappingXml->addAttribute('index-by', $associationMapping['indexBy']); $associationMappingXml->addAttribute('index-by', $associationMapping['indexBy']);
} }
if (isset($associationMapping['orphanRemoval']) && $associationMapping['orphanRemoval']!==false) { if (isset($associationMapping['orphanRemoval']) && $associationMapping['orphanRemoval']!==false) {
// false is the xml default $associationMappingXml->addAttribute('orphan-removal', 'true');
$associationMappingXml->addAttribute('orphan-removal', $associationMapping['orphanRemoval']);
} }
if (isset($associationMapping['joinTable']) && $associationMapping['joinTable']) { if (isset($associationMapping['joinTable']) && $associationMapping['joinTable']) {
$joinTableXml = $associationMappingXml->addChild('join-table'); $joinTableXml = $associationMappingXml->addChild('join-table');