Magento Model Diagram
Posted About 12 years ago. Visible to the public.
This is a high-level view of the Magento Model, Resource Model and Resource Collection Model structure
Related cards:
Config Model & Resource Model Definition
<config>
<global>
<models>
<namespace_module>
<class>Namespace_Module_Model</class>
<resourceModel>namespace_module_resource</resourceModel>
</namespac...
Many to Many Resource Model Mapping
This is some boilerplate code to facilitate the use of many-to-many relationship tables in Magento. I found myself rewriting this code often, so this saves some time. This example links a sizeguide entity to attribute sets. Obviously you'll need t...
Config Model Rewrite Definition
<config>
<global>
<models>
<catalog>
<rewrite>
<product>Namespace_Module_Model_Catalog_Product</product>
</rewrite>
</catalog>
...
Boilerplate Resource Model Class (CE 1.6 / EE 1.11 And After)
/**
* Yourcompany.com
*
* PHP Version 5
*
* @category Namespace
* @package Namespace_Module
* @author Your Name <your.name@yourcompany.com>
* @copyright 2012 yourcompany.com
* @license http:...
Boilerplate Resource Model Class (Before CE 1.6 / EE 1.11)
/**
* Yourcompany.com
*
* PHP Version 5
*
* @category Namespace
* @package Namespace_Module
* @author Your Name <your.name@yourcompany.com>
* @copyright 2012 yourcompany.com
* @license http:...
Boilerplate Model Class
/**
* Yourcompany.com
*
* PHP Version 5
*
* @category Namespace
* @package Namespace_Module
* @author Your Name <your.name@yourcompany.com>
* @copyright 2012 yourcompany.com
* @license http:...
Boilerplate Resource Model Collection Class (CE 1.6 / EE 1.11 And After)
/**
* Yourcompany.com
*
* PHP Version 5
*
* @category Namespace
* @package Namespace_Module
* @author Your Name <your.name@yourcompany.com>
* @copyright 2012 yourcompany.com
* @license http:...
Boilerplate Resource Model Collection Class (Before CE 1.6 / EE 1.11)
/**
* Yourcompany.com
*
* PHP Version 5
*
* @category Namespace
* @package Namespace_Module
* @author Your Name <your.name@yourcompany.com>
* @copyright 2012 yourcompany.com
* @license http:...
Magento Version History
Here is a table showing major changes over the Magento version history:
| CE | PE | EE | Year | Major Changes ...
Table Creation In Magento 1.6/1.11+
Magento CE 1.6 and PE/EE 1.11 introduced database abstraction, this is the way to set up tables using the new code.
$table = $installer->getConnection()
->newTable($installer->getTable('your_module/table_name_in_xml'))
->...
Posted by Mike Whitby to Magento (2012-03-14 12:06)