From 49382282342fbde6b46d9f5cad1a3c9e316a4d8d Mon Sep 17 00:00:00 2001 From: beberlei Date: Sat, 12 Dec 2009 08:27:24 +0000 Subject: [PATCH] [2.0] DDC-206 - Bugfix in XML Metadata Driver --- lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php | 2 +- .../ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index ba64abf44..d74db40bb 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -174,7 +174,7 @@ class XmlDriver extends AbstractFileDriver if (isset($idElement->generator)) { $metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' - . (string)$idElement->generator['strategy'])); + . strtoupper((string)$idElement->generator['strategy']))); } // Check for SequenceGenerator/TableGenerator definition diff --git a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml index 1568ba917..e0af42faf 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml +++ b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml @@ -13,7 +13,7 @@ - +