Welcome Guest, Not a member yet? Register   Sign In
Entity fields not saving when using 'business logic' method.
#8

Hi,

You should use [] and not ().

Not working:
Code:
$this->attributes('password') = password_hash($pass, PASSWORD_BCRYPT);

Working
Code:
$this->attributes['password'] = password_hash($pass, PASSWORD_BCRYPT);
Reply


Messages In This Thread
RE: Entity fields not saving when using 'business logic' method. - by jreklund - 01-28-2020, 11:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB