-
Notifications
You must be signed in to change notification settings - Fork 49
QuestionsAnswers
djomen edited this page Jul 20, 2014
·
6 revisions
Questions & answers
Models cannot be generic because how would the factory know about the generic type parameters? However, models could inherit from a generic class. But, if you initialize the factory the normal way, the generic type will be passed to the factory, which will die.
You need to properly exclude the generic type from the list of types you pass to the factory. FIXME: explain.