diff --git a/doctrine-mapping.xsd b/doctrine-mapping.xsd index 7c9cd2bfe..5fb261e13 100644 --- a/doctrine-mapping.xsd +++ b/doctrine-mapping.xsd @@ -254,7 +254,7 @@ - + @@ -274,7 +274,7 @@ - + diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index af783cf4e..daa09dc15 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -250,8 +250,8 @@ class XmlDriver extends AbstractFileDriver 'allocationSize' => (string)$seqGenerator['allocation-size'], 'initialValue' => (string)$seqGenerator['initial-value'] )); - } else if (isset($idElement->{'custom-generator'})) { - $customGenerator = $idElement->{'custom-generator'}; + } else if (isset($idElement->{'custom-id-generator'})) { + $customGenerator = $idElement->{'custom-id-generator'}; $args = array(); foreach ($customGenerator->args->children() as $argument) { $args[] = (string) $argument; diff --git a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.Animal.dcm.xml b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.Animal.dcm.xml index 4f7e6d26f..3c58d4ad8 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.Animal.dcm.xml +++ b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.Animal.dcm.xml @@ -10,12 +10,12 @@ - + par1 par2 - + \ No newline at end of file