public function update($criteria = array(), $safe = TRUE) { if (isset($this->_changed['password'])) { $this->password = $this->hash($this->password); } return parent::update($criteria, $safe); }
public function update($criteria = array(), $options = array()) { $this->updated = time(); return parent::update($criteria, $options); }