1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Output cascade={"all"} if all cascade options set

This commit is contained in:
barelon 2012-09-30 01:12:06 +03:00
parent 831f0acdc5
commit c97eff94f5

View File

@ -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) . '}';
} }