From cd37ec47d55dd5d8300e8cb8a2c8fb1ea120bc7f Mon Sep 17 00:00:00 2001 From: barelon Date: Sun, 30 Sep 2012 01:16:21 +0300 Subject: [PATCH] Set 'cascade' => 'all' if all cascade options set --- lib/Doctrine/ORM/Tools/Export/Driver/PhpExporter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Doctrine/ORM/Tools/Export/Driver/PhpExporter.php b/lib/Doctrine/ORM/Tools/Export/Driver/PhpExporter.php index 24f72431e..50236fd12 100644 --- a/lib/Doctrine/ORM/Tools/Export/Driver/PhpExporter.php +++ b/lib/Doctrine/ORM/Tools/Export/Driver/PhpExporter.php @@ -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'],