Exemple #1
0
 public function update($data, $filter, $mustUpdate = null)
 {
     if ($this->use_meta) {
         $pk = $this->get_pk_list($filter);
         foreach ($this->metaColumn as $col) {
             if (!in_array($col, array_keys($data))) {
                 continue;
             }
             $obj_meta = new dbeav_meta($this->table_name(true), $col);
             $obj_meta->update($data[$col], $pk);
             unset($data[$col]);
         }
     }
     return parent::update($data, $this->_filter($filter), $mustUpdate);
 }
Exemple #2
0
 /**
  * 更新数据
  *
  * @param array $data
  * @param array $filter
  * @param misc $mustUpdate
  *
  * @return string
  */
 public function update($data, $filter = array(), $mustUpdate = null)
 {
     return parent::update($data, $filter, $mustUpdate);
 }