I like that one object is tied to one record in the database, i.e. object must be created. This is your main ActiveRecord template . In my experience, the approach with one object to one row creates a much more flexible and competent representation in the code. In addition, I like to treat objects as records and a class as a table. For example, to change the name of an entry, follow these steps:
objPerson = new Person(id)
objPerson.name = "George"
objPerson.save()
, ,
aryPeople = Person::getPeopleFromState("LA")
Active Record. , , , . - DataMapper.
ORM . , , , , .