public function getRoles(bool $force = false)
    {
        if ($this->nb_role_list->isEmpty() || $force) {
            $this->nb_role_list->clear();
            $this->nb_role_list->merge(CNabuRole::getAllRoles($this));
        }

        return $this->nb_role_list;
    }
public function getRoles(bool $force = false)
    {
        if ($this->nb_role_list->isEmpty() || $force) {
            $this->nb_role_list->clear();
            $this->nb_role_list->merge(CNabuRole::getAllRoles($this));
        }

        return $this->nb_role_list;
    }
public function getRoles ( bool $ force = false ) { if ( $ this -> nb_role_list -> isEmpty ( ) || $ force ) { $ this -> nb_role_list -> clear ( ) ; $ this -> nb_role_list -> merge ( CNabuRole :: getAllRoles ( $ this ) ) ; } return $ this -> nb_role_list ; }
Gets a Role List of all roles owned by this Customer.
@param bool $force If true forces to reload Role list form the database storage.
@return CNabuRoleList Returns the list of roles.
Gets a Role List of all roles owned by this Customer .