feat: add Entity::injectRawData() to avoid name collision - #7208
Conversation
adc2f12 to
7902b18
Compare
|
To be honest, I do not agree with this PR. |
|
Thank you for your comment.
Can you elaborate? elegant like in laravel explains nothing to me. |
|
To serve an entity setter and getter for attributes Otherwise, any new entity functionality (method names) will need to be adjusted for the fact that the developer may have an attribute with the same name. |
MGatner
left a comment
There was a problem hiding this comment.
I don't see the public requirement being necessary here, and it is a very likely breaking change. We can discuss it here, or my preference would be to split it out into a separate PR and proceed with the injection method.
7902b18 to
31a2e83
Compare
Indeed. I dropped it. |
|
@iRedds |
|
@kenjis The Sorry, but I don't agree with you. |
|
In my opinion, the In fact, the attributes holds all the data for the record, but that is just the current implementation. |
31a2e83 to
63a00bb
Compare
|
Added changelog. |
|
I think this PR is ready to merge. @mostafakhudair @najdanovicivan Any comments? |
|
Thank you for the review! @MGatner @najdanovicivan |
Description
Supersedes #5763, #5781
Fixes #5762
Entity::injectRawData()Entity::setAttributes()require setter/getter methods must be public. See Bug: Entity can't handle column namedattributes#5762 (comment)Checklist: