浏览代码

Fixed inconsistency

Henrik Bjørnskov 14 年之前
父节点
当前提交
6a0075eee2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/DoctrineBundle/Security/EntityUserProvider.php

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Security/EntityUserProvider.php

@@ -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);