Mage_Sales_Model_Entity_Order_Invoice_Attribute_Backend_Parent Class Reference

Inheritance diagram for Mage_Sales_Model_Entity_Order_Invoice_Attribute_Backend_Parent:

Mage_Eav_Model_Entity_Attribute_Backend_Abstract Mage_Eav_Model_Entity_Attribute_Backend_Interface

List of all members.

Public Member Functions

 afterSave ($object)


Detailed Description

Definition at line 28 of file Parent.php.


Member Function Documentation

afterSave ( object  ) 

Save invoice items

Reimplemented from Mage_Eav_Model_Entity_Attribute_Backend_Abstract.

Definition at line 31 of file Parent.php.

00032     {
00033         parent::afterSave($object);
00034 
00035         /**
00036          * Save invoice items
00037          */
00038         foreach ($object->getAllItems() as $item) {
00039             $item->setOrderItem($item->getOrderItem());
00040             $item->save();
00041         }
00042 
00043         foreach($object->getCommentsCollection() as $comment) {
00044             $comment->save();
00045         }
00046 
00047         return $this;
00048     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:41 2009 for Magento by  doxygen 1.5.8