|
|
|
|
|
by esaym
2589 days ago
|
|
Related: The "AnemicDomainModel" https://www.martinfowler.com/bliki/AnemicDomainModel.html In other words, there should be another layer in-between your DAO (data access object, ORM, etc) and controller. The "Model" in MVC was never meant to represent a single row of a database in object form. A Model should have a DAO but a Model should not be a DAO. |
|
https://martinfowler.com/eaaCatalog/activeRecord.html