public function isUpdate($update = true, $where = null) { $this->isUpdate = $update; if (!empty($where)) { $this->updateWhere = $where; } return $this; }