Output cascade={"all"} if all cascade options set
This commit is contained in:
parent
831f0acdc5
commit
c97eff94f5
1 changed files with 4 additions and 0 deletions
|
@ -1045,6 +1045,10 @@ public function __construct()
|
||||||
if ($associationMapping['isCascadeMerge']) $cascades[] = '"merge"';
|
if ($associationMapping['isCascadeMerge']) $cascades[] = '"merge"';
|
||||||
if ($associationMapping['isCascadeRefresh']) $cascades[] = '"refresh"';
|
if ($associationMapping['isCascadeRefresh']) $cascades[] = '"refresh"';
|
||||||
|
|
||||||
|
if (count($cascades) === 5) {
|
||||||
|
$cascades = array('"all"');
|
||||||
|
}
|
||||||
|
|
||||||
$typeOptions[] = 'cascade={' . implode(',', $cascades) . '}';
|
$typeOptions[] = 'cascade={' . implode(',', $cascades) . '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue