protected function normalize($key, $value, array $attribute = null) { $value = parent::normalize($key, $value, $attribute); if ($key == 'passwd') { $value = $this->encodePasswd($value); } elseif ($key == 'email') { $value = strtolower($email); } return $value; }
public function __get($prop) { if ($prop == 'role_name') { return $this->getRoleName(); } return parent::__get($prop); }