protected function _afterSave()
 {
     parent::_afterSave();
     foreach ($this->getProductCollection() as $product) {
         $product->cleanCache();
     }
 }
示例#2
0
文件: Review.php 项目: rajarshc/Rooja
 /**
  * Processing object after save data
  *
  * @return Mage_Core_Model_Abstract
  */
 protected function _afterSave()
 {
     //If the review becomes approved, approve all associated pending tranfser
     if ($this->oldData['status_id'] == self::STATUS_PENDING && $this->isApproved()) {
         $this->approvePendingTransfers();
         //If the review is new (hence not having an id before) get applicable rules,
         //and create a pending transfer for each one
     } elseif ($this->getReviewId() && !isset($this->oldData['review_id'])) {
         $this->ifNewReview();
     }
     return parent::_afterSave();
 }