CodeIgniter4
CodeIgniter4 copied to clipboard
fix: Entity can't handle column named attributes
Description Fixes #5762 Supersede #5763
- fix Entity can't handle column named attributes
- add new setter method "
_set+ key" for a attribute
Checklist:
- [x] Securely signed commits
- [x] Component(s) with PHPDoc blocks, only if necessary or adds value
- [ ] Unit testing, with >80% coverage
- [ ] User guide updated
- [x] Conforms to style guide
I like this solution better, but let's wrap up the Issue conversation first. I think it is quite possible that someone is using $entity->attributes = $_POST not realizing the current behavior is "unintended".
Maybe mark this one to revisit for version 5?
Added a note: https://github.com/codeigniter4/CodeIgniter4/projects/6#card-79354180