Skip to content
Discussion options

You must be logged in to vote

When $attributes variable is changed to private this variable is not changed and column with the name is updated.

Many projects use $this->attributes on models, this will break everything.

As a workaround just use setAttribute or setRawAttributes methods (depending on the task).

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@korkoshko
Comment options

@rodrigopedra
Comment options

Comment options

You must be logged in to vote
1 reply
@BartlomiejMajowicz
Comment options

Answer selected by BartlomiejMajowicz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #42748 on June 10, 2022 09:54.