/**
  * Update campaign donation record.
  *
  * @param   int         $row_id
  * @param   array       $data
  * @param   string      $where          Column used in where argument.
  * @return  boolean
  * @access  public
  * @since   1.0.0
  */
 public function update($row_id, $data = array(), $where = '')
 {
     if (empty($where)) {
         Charitable_Campaign::flush_donations_cache($row_id);
     }
     return parent::update($row_id, $data, $where);
 }
 /**
  * Update a benefactor object.  
  *
  * @param 	int 		$row_id
  * @param 	array 		$data
  * @param 	string 		$where 			Column used in where argument.
  * @return 	boolean
  * @access  public
  * @since 	1.0.0
  */
 public function update($row_id, $data = array(), $where = '')
 {
     /* Allow plugins to filter the data before inserting to database */
     $data = apply_filters('charitable_benefactor_data', $data);
     if (isset($data['benefactor'])) {
         $benefactor_details = $data['benefactor'];
         unset($data['benefactor']);
         /* Allow plugins to hook into this event */
         do_action('charitable_benefactor_updated', $row_id, $benefactor_details, $where);
     }
     return parent::update($row_id, $data, $where);
 }