Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix for #2906 #2931

Merged
merged 1 commit into from

2 participants

@Tobion
Collaborator

closes #2906

@fabpot fabpot referenced this pull request from a commit
@fabpot fabpot merged branch Tobion/patch-3 (PR #2931)
Commits
-------

1eb5583 fixes #2906

Discussion
----------

Fix for #2906

closes #2906
89bd0d7
@fabpot fabpot merged commit 1eb5583 into symfony:2.0
@mmucklo mmucklo referenced this pull request from a commit
@fabpot fabpot merged branch Tobion/patch-3 (PR #2931)
Commits
-------

1eb5583 fixes #2906

Discussion
----------

Fix for #2906

closes #2906
4acf14a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 20, 2011
  1. @Tobion

    fixes #2906

    Tobion authored
This page is out of date. Refresh to see the latest.
View
2  src/Symfony/Bundle/DoctrineBundle/Mapping/MetadataFactory.php
@@ -77,12 +77,12 @@ public function getClassMetadata($class, $path = null)
if (class_exists($class)) {
$r = $all[0]->getReflectionClass();
$path = $this->getBasePathForClass($class, $r->getNamespacename(), dirname($r->getFilename()));
+ $metadata->setNamespace($r->getNamespacename());
} elseif (!$path) {
throw new \RuntimeException(sprintf('Unable to determine where to save the "%s" class (use the --path option).', $class));
}
$metadata->setPath($path);
- $metadata->setNamespace($r->getNamespacename());
return $metadata;
}
Something went wrong with that request. Please try again.