(1) What is ORM?
ORM stands for Object Relational Mapping. It’s a programming technique used to convert different types of data to Objects and vice versa in OOP.
There are 2 types of ORM:
(1) Convert different types of data to objects.
(2) Convert objects to various types of data.
(2) ORM in Magento?
In Magento, ORM is displayed as Models in Magento design pattern MVC. Most of the models are inherited from the Varien_Object class, along with using PHP magic _get and _set functions, to retrieve and set the data of the object:
ex:- $product = Mage::getModel(‘catalog/product’)->load($product_id)->setPrice(200);