Building layers on data access (Part 1)
Active Record pattern is an architectural pattern that is used to model and persist data in a relational database. It has a long history ever since Martin Fowler described it in his book Patterns of Enterprise Application Architecture. Pattern tries to model both data and behavior, thus violating the SOLID principle. Why this is bad? [...]