Fixed inconsistency

This commit is contained in:
Henrik Bjørnskov 2010-12-30 16:40:02 +01:00 committed by Fabien Potencier
parent db5e180d37
commit 6a0075eee2

View File

@ -18,7 +18,7 @@ class EntityUserProvider implements UserProviderInterface
$this->class = $class;
if (false !== strpos($this->class, ':')) {
$this->class = $em->getClassMetadata($class)->getName();
$this->class = $em->getClassMetadata($class)->name;
}
$this->repository = $em->getRepository($class);