title: Hashed password overwriting when updating data
body: <p>Did you workin with user data when u extend Your class from ActiveRecord? I have problem when i want to update user. There is PasswordHash attribute. I use function beforeSave where i hashed password on create but i dont know that i should use this in update action?</p>
  
  <pre><code>public function beforeSave($insert)
  {
      if (parent::beforeSave($insert)) {
          if($this-&gt;isNewRecord) {
              $this-&gt;created_at = time();
              $this-&gt;status = self::DEFAULT_STATUS;
              $this-&gt;generateAuthKey();
              $this-&gt;setPassword($this-&gt;PasswordHash);
              $this-&gt;RulesAccept=1;
              return true;
          } else {
              $this-&gt;setPassword($this-&gt;PasswordHash);
              return true;
          }
      } 
  }
  </code></pre>
  
  <p>When I update user in input i can see dotted at hashed password but when i change password it not hashed this password. I modified my code but the password is constantly overwritten. How I should work with passwordInput and password hashed in ActiveRecord?</p>