From 289c186de5d6bc6cbf36f960c4f4f78f1d6fd773 Mon Sep 17 00:00:00 2001
From: Asmir Mustafic <goetas@lignano.it>
Date: Fri, 16 Dec 2011 16:16:52 +0100
Subject: [PATCH] orphanRemoval default is false

---
 lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php
index 3e936a487..1ca5fb403 100644
--- a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php
+++ b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php
@@ -221,8 +221,7 @@ class XmlExporter extends AbstractExporter
                 $associationMappingXml->addAttribute('index-by', $associationMapping['indexBy']);
             }
             if (isset($associationMapping['orphanRemoval']) && $associationMapping['orphanRemoval']!==false) {
-                // false is the xml default 
-                $associationMappingXml->addAttribute('orphan-removal', $associationMapping['orphanRemoval']);
+                $associationMappingXml->addAttribute('orphan-removal', 'true');
             }
             if (isset($associationMapping['joinTable']) && $associationMapping['joinTable']) {
                 $joinTableXml = $associationMappingXml->addChild('join-table');