function update() { $update = $this->_data; unset($update[$this->primary]); return $this->db->update($this->_current_id, $this->_update, $this->table, $this->primary); }
function update() { $update = $this->_data; unset($update[$this->primary]); if ($this->db->update($this->_current_id, $this->_update, $this->table, $this->primary) === false) { return false; } $this->notify(); return true; }