Пример #1
0
 public function update($datas = null, $where = null)
 {
     if ($datas == null) {
         $datas = $this->toArray();
         $this->clear();
     }
     $time = time();
     $datas['update_time'] = $time;
     return parent::update($datas, $where);
 }