*/ class Mage_Sales_Model_Entity_Order_Item extends Mage_Eav_Model_Entity_Abstract { public function __construct() { $resource = Mage::getSingleton('core/resource'); $this->setType('order_item')->setConnection( $resource->getConnection('sales_read'), $resource->getConnection('sales_write') ); } }