Where clause filtering by FilteredTypeResolver column
I want to perform a query filtering the results based on the
attribute/column used as key of the FilteredTypeResolver. But
apparently I can't.
QuestionAnswer references Question, which is the root abstract class
of a hierarchy of questions, and also the root of the
FilteredTypeResolver, using the #qtype and 'qtype' columns.
Each concrete subclass of question implements #qtype.
I want to perform something like:
query := Query read: QuestionAnswer where: [:each | each question
qtype = NumericQuestion qtype ].
But it seems that because QuestionAnswer references Question (the
abstract class) in its #question mapping/attribute, the #qtype can't
be resolved, because it is a filtering column (which apparently has a