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

(01-28-2020, 11:45 AM)jreklund Wrote: 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);

hi, I'm also having this problem. the setPassword() method doesn't work when I enter data with $entities->fill($this->request->getPost()). So the data is entered into the database without going through hashing first. Do you know the cause of this problem?
Reply


Messages In This Thread
RE: Entity fields not saving when using 'business logic' method. - by memiljamel - 12-25-2021, 08:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB