From bd28cb1b12faaa9106126e49f45b8f6d61c927ae Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 8 Aug 2010 11:32:12 +0200 Subject: [PATCH] DDC-645 - Demoted to an attribute on to allow better validation, fixed XSD schema --- UPGRADE_TO_2_0 | 8 ++++++++ doctrine-mapping.xsd | 9 +++++++++ lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php | 4 ++-- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/UPGRADE_TO_2_0 b/UPGRADE_TO_2_0 index 0d777b528..1dcc807f1 100644 --- a/UPGRADE_TO_2_0 +++ b/UPGRADE_TO_2_0 @@ -1,3 +1,11 @@ +# Update from 2.0-BETA3 to 2.0-BETA4 + +## XML Driver element demoted to attribute + +We changed how the XML Driver allows to define the change-tracking-policy. The working case is now: + + + # Update from 2.0-BETA2 to 2.0-BETA3 ## Serialization of Uninitialized Proxies diff --git a/doctrine-mapping.xsd b/doctrine-mapping.xsd index 9b6b7c629..3a09f24b3 100644 --- a/doctrine-mapping.xsd +++ b/doctrine-mapping.xsd @@ -75,6 +75,7 @@ + @@ -82,6 +83,14 @@ + + + + + + + + diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index 575fb2230..da2885b32 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -99,9 +99,9 @@ class XmlDriver extends AbstractFileDriver } // Evaluate - if (isset($xmlRoot->{'change-tracking-policy'})) { + if (isset($xmlRoot['change-tracking-policy'])) { $metadata->setChangeTrackingPolicy(constant('Doctrine\ORM\Mapping\ClassMetadata::CHANGETRACKING_' - . strtoupper((string)$xmlRoot->{'change-tracking-policy'}))); + . strtoupper((string)$xmlRoot['change-tracking-policy']))); } // Evaluate