Menu

#10 filtered inheritance base class selects miss inst vars

open
nobody
None
8
2003-07-18
2003-07-18
Alan Knight
No

If you select with filtered inheritance, you get instances of
subclasses back correctly, but we only select the fields from
the parent, so subclass inst vars aren't populated. You can
see this in FilteredInhiertancetest>>testDirectQuery by
adding a line that tests the branch attribute of the retrieved
managers.

I think the fix is fairly simple, which is just to retrieve the
union of the fields in all of the subclasses.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB