Skip to content

Commit

Permalink
Merge pull request #16 from rixxi/bugfix-treeable
Browse files Browse the repository at this point in the history
Bugfix treeable
  • Loading branch information
mishak87 committed Nov 13, 2015
2 parents cdbc9ec + fd58a60 commit a532672
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Rixxi/Gedmo/DI/OrmExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,17 @@ public function getEntityMappings()
$config = $this->getValidatedConfig();

$annotations = array(
'loggable',
'translatable',
'treeable',
'loggable' => 'Loggable',
'translatable' => 'Translatable',
'treeable' => 'Tree',
);

$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";
}
}

Expand Down

0 comments on commit a532672

Please sign in to comment.