|
It seems that Magento hasn’t accommodated for loading Enterprise backend_models yet. It assumes all class names should be prefixed with ‘mage_’ so I made the following change.
Enterprise version 1.12
File: app/code/core/Mage/Core/Model/Config.php
Class: Mage_Core_Model_Config
Function: getGroupedClassName()
Example Backend Model: enterprise_targetrule/catalog_product_attribute_backend_rule
Lines: 1253-1255
// Original Code if (empty($className)) { $className = 'mage_'.$group.'_'.$groupType; }
// Modified Code to accommodate for enterprise_ backend models if (empty($className)) { if (preg_match('/^enterprise_/', $classId)) { $className = $group.'_'.$groupType; } else { $className = 'mage_'.$group.'_'.$groupType; } }
Note: I was forced to override this method via copying the file and placing it in app/code/local/Mage/Core/Model/Config.php because it seems the class is loaded directly and can’t be extended via a module.
|