Collapsed cascade elements, if cascade-all.
(better readability for generated xml)
This commit is contained in:
parent
0b1f6e3539
commit
97321a1ff2
1 changed files with 3 additions and 0 deletions
|
@ -276,6 +276,9 @@ class XmlExporter extends AbstractExporter
|
||||||
if ($associationMapping['isCascadeDetach']) {
|
if ($associationMapping['isCascadeDetach']) {
|
||||||
$cascade[] = 'cascade-detach';
|
$cascade[] = 'cascade-detach';
|
||||||
}
|
}
|
||||||
|
if(count($cascade)==5){
|
||||||
|
$cascade = array('cascade-all');
|
||||||
|
}
|
||||||
if ($cascade) {
|
if ($cascade) {
|
||||||
$cascadeXml = $associationMappingXml->addChild('cascade');
|
$cascadeXml = $associationMappingXml->addChild('cascade');
|
||||||
foreach ($cascade as $type) {
|
foreach ($cascade as $type) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue