8000 fixes #2906 · symfony/symfony@1eb5583 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1eb5583

Browse files
committed
fixes #2906
1 parent 34f1b58 commit 1eb5583

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