I would probably use `git blame` on that piece of code to find out what the
edge cases are there: don't think anybody really remembers the specific.
In general, SQL generated for an inheritance tree should only contain
filtering for common fields, and never child class fields as per
discussions
Hi! I have the following structure of entities: Customer is the parent
class and it has two subclasses - Company and Person. My problem is that I
need to apply filters to specific fields in Company and Person, not just
Customer. As an example: Company is filtered by Company.name and Person is