Пример #1
0
 public function update($criteria = array(), $safe = TRUE)
 {
     if (isset($this->_changed['password'])) {
         $this->password = $this->hash($this->password);
     }
     return parent::update($criteria, $safe);
 }
Пример #2
0
 public function update($criteria = array(), $options = array())
 {
     $this->updated = time();
     return parent::update($criteria, $options);
 }