Henrik Bjørnskov 14 лет назад
Родитель
Сommit
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);