protected function _getResource() { if (is_null($this->childMode)) { return parent::_getResource(); } if (empty($this->_resourceName)) { Mage::throwException(Mage::helper('core')->__('Resource is not set.')); } $arguments = array('child_mode' => $this->childMode); return Mage::getResourceModel($this->_resourceName, $arguments); }