1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Set 'cascade' => 'all' if all cascade options set

This commit is contained in:
barelon 2012-09-30 01:16:21 +03:00
parent c97eff94f5
commit cd37ec47d5

View File

@ -99,6 +99,9 @@ class PhpExporter extends AbstractExporter
unset($cascade[$key]);
}
}
if (count($cascade) === 5) {
$cascade = array('all');
}
$associationMappingArray = array(
'fieldName' => $associationMapping['fieldName'],
'targetEntity' => $associationMapping['targetEntity'],