AсtiveReсоrd is a very popular design pattern used in object-oriented programming to access relational databases. The main idea of this pattern is that each table in a database has its own class. This class has corresponding properties for database table fields. In general the class implements such methods as: add, delete, update etc. The object of this class corresponds to a specific record in the database table. You can find more about this pattern design here.
The ObjeсtMоdel class is responsible for implementation of this pattern in PrestaShop. It can be found in the root folder classes. All AсtiveReсоrd classes should be inherited from this class. (more…)