Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Entity fields not saving when using 'business logic' method.
Post: RE: Entity fields not saving when using 'business ...

Apologies, that was careless of me. I have corrected it, and it's working correctly now. The password is encrypted and saved when saving the entity. Thank you both for your help.
7,106 Views
9 Replies
01-28-2020, 01:01 PM
larry-ns
    Thread: Entity fields not saving when using 'business logic' method.
Post: RE: Entity fields not saving when using 'business ...

ErrorException #64 Can't use method return value in write context Error line: $this->attributes('password') = password_hash($pass, PASSWORD_BCRYPT); Backtrace: {PHP internal code} — Code...
7,106 Views
9 Replies
01-28-2020, 04:45 AM
larry-ns
    Thread: Entity fields not saving when using 'business logic' method.
Post: RE: Entity fields not saving when using 'business ...

Hi, using the suggestion in janroz's post results in the following error when saving. ErrorException Can't use method return value in write context Not quite there yet... but thank you for expla...
7,106 Views
9 Replies
01-27-2020, 03:06 AM
larry-ns
    Thread: Entity fields not saving when using 'business logic' method.
Post: RE: Entity fields not saving when using 'business ...

Thanks. The documentation makes it seem straightforward but I've had to abandon the entity business rules approach until I get more information. I've moved my latest project from 3 to 4 with very few ...
7,106 Views
9 Replies
01-26-2020, 03:12 AM
larry-ns
    Thread: Entity fields not saving when using 'business logic' method.
Post: Entity fields not saving when using 'business logi...

Some help / advice requested, please. Using the 'UserModel' model and 'User' entity examples duplicated from the CodeIgniter4 docs, I have encountered a problem. The saving of the user entity to th...
7,106 Views
9 Replies
01-20-2020, 10:16 AM
larry-ns

Theme © iAndrew 2016 - Forum software by © MyBB