public function updateAttributes($attributes) { $this->_modifiedFields = array_merge($this->_modifiedFields, array_keys($attributes)); $this->assignAttributes($attributes); if ($this->isValid()) { $this->update(); return true; } return false; }