Permalink
Browse files

fix wrong mapping

  • Loading branch information...
1 parent fabede6 commit eae2f28042915ca33727b18b7623787b3acd711b @uwej711 committed Mar 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/ODM/PHPCR/Mapping/Driver/YamlDriver.php
@@ -86,7 +86,7 @@ public function loadMetadataForClass($className, ClassMetadata $class)
if (isset($element['id'])) {
$mapping = array('fieldName' => $element['id'], 'id' => true);
if (isset($element['id']['generator']['strategy'])) {
- $mapping = $element['id']['generator']['strategy'];
+ $mapping['strategy'] = $element['id']['generator']['strategy'];
}
$class->mapId($mapping);
}
@@ -173,4 +173,4 @@ protected function loadMappingFile($file)
{
return Yaml::parse($file);
}
-}
+}

0 comments on commit eae2f28

Please sign in to comment.