RetroMocha / obvious

Obvious is a clean architecture.
MIT License
264 stars 16 forks source link

Allow polymorphic entities #41

Closed ghost closed 9 years ago

ghost commented 10 years ago

How can polymorphic entities be added?

Example schema:

person

id name

teacher

id is_tenure person_id

student

id gpa person_id

Thanks,

dkobia commented 9 years ago

This is a great little framework, but I'm stumped about how to express polymorphic relationships in models in this context without violating dependency injection principles.