Merge pull request #458 from barelon/master
Use cascade=all if all cascade options set
This commit is contained in:
commit
0c8be37ca9
@ -1045,6 +1045,10 @@ public function __construct()
|
||||
if ($associationMapping['isCascadeMerge']) $cascades[] = '"merge"';
|
||||
if ($associationMapping['isCascadeRefresh']) $cascades[] = '"refresh"';
|
||||
|
||||
if (count($cascades) === 5) {
|
||||
$cascades = array('"all"');
|
||||
}
|
||||
|
||||
$typeOptions[] = 'cascade={' . implode(',', $cascades) . '}';
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,11 @@ class PhpExporter extends AbstractExporter
|
||||
unset($cascade[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
if (count($cascade) === 5) {
|
||||
$cascade = array('all');
|
||||
}
|
||||
|
||||
$associationMappingArray = array(
|
||||
'fieldName' => $associationMapping['fieldName'],
|
||||
'targetEntity' => $associationMapping['targetEntity'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user