function set($sPropName, $sPropValue)
{
if ($sPropName === "password" || $sPropName === "passwordconfirm") {
# Special handling for password and passwordconfirm
if ($sPropName === "password" && $sPropValue !== "") {
parent::set("digesta1", $this->getPasswordHashForPassword($sPropValue));
}
return $this;
}
try {
# does the property exist on the model object ?
parent::set($sPropName, $sPropValue);
} catch (\Exception $e) {
# no, it may belong to the oIdentityPrincipal model object
if ($this->oIdentityPrincipal) {
$this->oIdentityPrincipal->set($sPropName, $sPropValue);
}
}
return $this;
}