public function removeRoleForUserById($userId, $role) {
		$userFound = $this->removeRoleForUserByColumnValue(
			'id',
			(int) $userId,
			$role
		);

		if ($userFound === false) {
			throw new UnknownIdException();
		}
	}
public function removeRoleForUserById($userId, $role) {
		$userFound = $this->removeRoleForUserByColumnValue(
			'id',
			(int) $userId,
			$role
		);

		if ($userFound === false) {
			throw new UnknownIdException();
		}
	}
public function removeRoleForUserById ( $ userId , $ role ) { $ userFound = $ this -> removeRoleForUserByColumnValue ( 'id' , ( int ) $ userId , $ role ) ; if ( $ userFound === false ) { throw new UnknownIdException ( ) ; } }
Takes away the specified role from the user with the given ID

A user may have any number of roles (i.e. no role at all, a single role, or any combination of roles)

@param int $userId the ID of the user to take the role away from
@param int $role the role as one of the constants from the {@see Role} class
@throws UnknownIdException if no user with the specified ID has been found

@see Role
Takes away the specified role from the user with the given ID