Output cascade={"all"} if all cascade options set
This commit is contained in:
parent
831f0acdc5
commit
c97eff94f5
@ -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) . '}';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user