Currently, inside a subquery closure (like whereIn) or a .when() closure, you cannot call a scope on the query object.