فهرست منبع

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