Right now, LazyModelList is a subclass of ModelList, with several of the key functions in ModelList being overridden (_add, _clear, _remove) in order to get it to properly work with non-Model objects.
This works well, but might not be the best thing to do if we're looking to extend work on YAF later on. It's better to have ModelList subclass LazyModelList, or if possible, make it so that a ModelList by default is lazy, and only become a "regular" ModelList if specified or a Model is added to it.
I'll add more discussion to this issue as it comes up.
Right now, LazyModelList is a subclass of ModelList, with several of the key functions in ModelList being overridden (
_add
,_clear
,_remove
) in order to get it to properly work with non-Model objects.This works well, but might not be the best thing to do if we're looking to extend work on YAF later on. It's better to have ModelList subclass LazyModelList, or if possible, make it so that a ModelList by default is lazy, and only become a "regular" ModelList if specified or a Model is added to it.
I'll add more discussion to this issue as it comes up.