orphanRemoval default is false
This commit is contained in:
parent
24432bd0ab
commit
289c186de5
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user