We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdbc9ec commit 1590836Copy full SHA for 1590836
src/Rixxi/Gedmo/DI/OrmExtension.php
@@ -44,18 +44,17 @@ public function getEntityMappings()
44
$config = $this->getValidatedConfig();
45
46
$annotations = array(
47
- 'loggable',
48
- 'translatable',
49
- 'treeable',
+ 'loggable' => 'Loggable',
+ 'translatable' => 'Translatable',
+ 'treeable' => 'Treeable',
50
);
51
52
$path = realpath(__DIR__ . '/../../../../../../gedmo/doctrine-extensions/lib/Gedmo');
53
54
$mappings = array();
55
- foreach ($annotations as $annotation) {
+ foreach ($annotations as $annotation => $namespace) {
56
if ($config['all'] || $config[$annotation]) {
57
- $name = ucfirst($annotation);
58
- $mappings["Gedmo\\$name\\Entity"] = "$path/$name/Entity";
+ $mappings["Gedmo\\$namespace\\Entity"] = "$path/$namespace/Entity";
59
}
60
61
0 commit comments