Commit 49382282 authored by beberlei's avatar beberlei

[2.0] DDC-206 - Bugfix in XML Metadata Driver

parent 097d1d6b
...@@ -174,7 +174,7 @@ class XmlDriver extends AbstractFileDriver ...@@ -174,7 +174,7 @@ class XmlDriver extends AbstractFileDriver
if (isset($idElement->generator)) { if (isset($idElement->generator)) {
$metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' $metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_'
. (string)$idElement->generator['strategy'])); . strtoupper((string)$idElement->generator['strategy'])));
} }
// Check for SequenceGenerator/TableGenerator definition // Check for SequenceGenerator/TableGenerator definition
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</lifecycle-callbacks> </lifecycle-callbacks>
<id name="id" type="integer" column="id"> <id name="id" type="integer" column="id">
<generator strategy="AUTO"/> <generator strategy="auto"/>
</id> </id>
<field name="name" column="name" type="string" length="50"/> <field name="name" column="name" type="string" length="50"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment