Ensure enum scopes work properly with STI and inheritance
The code was changed to call `where` on a specific class in 813c8c07, but no reasoning was given and I can't see any good reason why we would need to do that. This will ensure that the method is called on whatever class the scope is called on. Fixes #23013
Showing
想要评论请 注册 或 登录