How can i know the roles of my personel.
$personal = $em->getRepository('AuthenticationBundle:User')->FindPersonel($id);    
dump($personal->getRoles());
die();
there is nothing blank page.
How can i know the roles of my personel.
$personal = $em->getRepository('AuthenticationBundle:User')->FindPersonel($id);    
dump($personal->getRoles());
die();
there is nothing blank page.
 
    
        foreach( $personal->getRoles() as $role){
        echo $role;
    }
    die();
we must loop the getRoles()
 
    
    
*/ function dump($var) { foreach (func_get_args() as $var) { VarDumper::dump($var); } } }
– nasri_thamer Apr 28 '16 at 17:32