Ejemplo n.º 1
0
 public function delete(Mage_Review_Model_Review $review)
 {
     if ($review->getId()) {
         try {
             $this->_write->beginTransaction();
             $condition = $this->_write->quoteInto('review_id = ?', $review->getId());
             $review->load($review->getId());
             $this->_write->delete($this->_reviewTable, $condition);
             $this->_write->commit();
             $this->aggregate($review);
         } catch (Exception $e) {
             throw new Exception($e->getMessage());
         }
     }
 }