public function mapPartnerToUserRoles(array $partnerRoles)
    {
        $userRoles = array();
        foreach ($partnerRoles as $partnerRole) {

            $userRoles[] = $partnerRole;

            if ($partnerRole == Partner::ROLE_EMPLOYEE) {

                $userRoles[] = 'ROLE_ADMIN';
            }

        }
        return $userRoles;
    }
public function mapPartnerToUserRoles(array $partnerRoles)
    {
        $userRoles = array();
        foreach ($partnerRoles as $partnerRole) {

            $userRoles[] = $partnerRole;

            if ($partnerRole == Partner::ROLE_EMPLOYEE) {

                $userRoles[] = 'ROLE_ADMIN';
            }

        }
        return $userRoles;
    }
public function mapPartnerToUserRoles ( array $ partnerRoles ) { $ userRoles = array ( ) ; foreach ( $ partnerRoles as $ partnerRole ) { $ userRoles [ ] = $ partnerRole ; if ( $ partnerRole == Partner :: ROLE_EMPLOYEE ) { $ userRoles [ ] = 'ROLE_ADMIN' ; } } return $ userRoles ; }
Map provided partner business roles to FOS user roles

For instance, a sales clerk might get multiple roles
Map provided partner business roles to FOS user roles