diff --git a/src/Rixxi/Gedmo/DI/OrmExtension.php b/src/Rixxi/Gedmo/DI/OrmExtension.php index c3508b9..2a3c25b 100644 --- a/src/Rixxi/Gedmo/DI/OrmExtension.php +++ b/src/Rixxi/Gedmo/DI/OrmExtension.php @@ -44,18 +44,17 @@ public function getEntityMappings() $config = $this->getValidatedConfig(); $annotations = array( - 'loggable', - 'translatable', - 'treeable', + 'loggable' => 'Loggable', + 'translatable' => 'Translatable', + 'treeable' => 'Treeable', ); $path = realpath(__DIR__ . '/../../../../../../gedmo/doctrine-extensions/lib/Gedmo'); $mappings = array(); - foreach ($annotations as $annotation) { + foreach ($annotations as $annotation => $namespace) { if ($config['all'] || $config[$annotation]) { - $name = ucfirst($annotation); - $mappings["Gedmo\\$name\\Entity"] = "$path/$name/Entity"; + $mappings["Gedmo\\$namespace\\Entity"] = "$path/$namespace/Entity"; } }