Is Data Mapper a more modern trend than Active Record
The DataMapper is not more modern or newer, but just more suited for an ORM. The main reason people change is because ActiveRecord does not make for a good ORM. An AR wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data. So by definition, … Read more