File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed 
src/Symfony/Bridge/Doctrine/Security/User Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111
1212namespace  Symfony \Bridge \Doctrine \Security \User ;
1313
14- use  Doctrine \ORM \ EntityManager ;
14+ use  Doctrine \Common \ Persistence \ ObjectManager ;
1515use  Symfony \Component \Security \Core \Exception \UnsupportedUserException ;
1616use  Symfony \Component \Security \Core \Exception \UsernameNotFoundException ;
1717use  Symfony \Component \Security \Core \User \UserProviderInterface ;
1818use  Symfony \Component \Security \Core \User \UserInterface ;
1919
2020/** 
21-  * Wrapper around a Doctrine EntityManager . 
21+  * Wrapper around a Doctrine ObjectManager . 
2222 * 
2323 * Provides easy to use provisioning for Doctrine entity users. 
2424 * 
@@ -32,13 +32,13 @@ class EntityUserProvider implements UserProviderInterface
3232 private  $ property
3333 private  $ metadata
3434
35-  public  function  __construct (EntityManager $ em$ class$ propertynull )
35+  public  function  __construct (ObjectManager $ em$ class$ propertynull )
3636 {
3737 $ this class  = $ class
3838 $ this metadata  = $ emgetClassMetadata ($ class
3939
4040 if  (false  !== strpos ($ this class , ': ' )) {
41-  $ this class  = $ this metadata ->name ;
41+  $ this class  = $ this metadata ->getName () ;
4242 }
4343
4444 $ this repository  = $ emgetRepository ($ class
                         You can’t perform that action at this time. 
           
                  
0 commit comments