*/ class Mage_Sales_Model_Resource_Order_Invoice_Item_Collection extends Mage_Sales_Model_Resource_Collection_Abstract { /** * Event prefix * * @var string */ protected $_eventPrefix = 'sales_order_invoice_item_collection'; /** * Event object * * @var string */ protected $_eventObject = 'order_invoice_item_collection'; /** * Model initialization * */ protected function _construct() { $this->_init('sales/order_invoice_item'); } /** * Set invoice filter * * @param int $invoiceId * @return Mage_Sales_Model_Resource_Order_Invoice_Item_Collection */ public function setInvoiceFilter($invoiceId) { $this->addFieldToFilter('parent_id', $invoiceId); return $this; } }