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

Collapsed cascade elements, if cascade-all.

(better readability for generated xml)
This commit is contained in:
Asmir Mustafic 2011-10-18 16:18:25 +02:00
parent 0b1f6e3539
commit 97321a1ff2

View File

@ -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) {