8000 merged branch Tobion/patch-3 (PR #2931) · symfony/symfony@89bd0d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89bd0d7

Browse files
committed
merged branch Tobion/patch-3 (PR #2931)
Commits ------- 1eb5583 fixes #2906 Discussion ---------- Fix for #2906 closes #2906
2 parents 34f1b58 + 1eb5583 commit 89bd0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/DoctrineBundle/Mapping/MetadataFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ public function getClassMetadata($class, $path = null)
7777
if (class_exists($class)) {
7878
$r = $all[0]->getReflectionClass();
7979
$path = $this->getBasePathForClass($class, $r->getNamespacename(), dirname($r->getFilename()));
80+
$metadata->setNamespace($r->getNamespacename());
8081
} elseif (!$path) {
8182
throw new \RuntimeException(sprintf('Unable to determine where to save the "%s" class (use the --path option).', $class));
8283
}
8384

8485
$metadata->setPath($path);
85-
$metadata->setNamespace($r->getNamespacename());
8686

8787
return $metadata;
8888
}

0 commit comments

Comments
 (0)
0