public function update(array $data) { $where = $this->where; $this->single(); $return = parent::update($data); $this->where = $where; return $return; }