Collapsed cascade elements, if cascade-all.
(better readability for generated xml)
This commit is contained in:
parent
0b1f6e3539
commit
97321a1ff2
@ -276,6 +276,9 @@ class XmlExporter extends AbstractExporter
|
||||
if ($associationMapping['isCascadeDetach']) {
|
||||
$cascade[] = 'cascade-detach';
|
||||
}
|
||||
if(count($cascade)==5){
|
||||
$cascade = array('cascade-all');
|
||||
}
|
||||
if ($cascade) {
|
||||
$cascadeXml = $associationMappingXml->addChild('cascade');
|
||||
foreach ($cascade as $type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user