2 ms·
In my experience, the main problem with ORMs is that they promote the tendency to reuse their model instances for business logic entities, meaning they become o
by BerislavLopac 10y ago
In my experience, the main problem with ORMs is that they promote the tendency to reuse their model instances for business logic entities, meaning they become overly coupled with the persistence mechanism, namely SQL databases in this case. The architecture becomes much more flexible if the business logic is kept in an independent layer -- which may or may not be object-oriented -- which then uses ORM instance objects for interacting with the database.