What Does Active Record Do

Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.

What is Active Record in programming?

An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data.

What is the difference between Active Record and Data Mapper?

The big difference between the Active Record style and the Data Mapper style is, the Data Mapper style completely separates your domain from the persistence layer. … So far, not that different to the Active Record style. However, Data Mapper model objects are just plain PHP objects that have no knowledge of the database.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest