6.0: Rename `EntityTrait::_accessible` property to something more appropriate
Description
I never really liked the name of the _accessible property inside our Cake\Datasource\EntityTrait since just by its name it indicates some sort of permission system to prevent (general) access to specified properties inside PHP... which it doesn't do.
The concept of mass assignment is properly described in the Docs and the baked entity classes also have a somewhat suitable explenation of what is happening but still the property name itself is a bit missleading imho.
Here are some of my (bad) suggestions that came to my mind:
-
massAssignable(to be right on the nose but still what doesassignablemean) -
massEditable(although this also doesn't represent it correctly because$entity->set('myfield', 'value');would also be blocked ifmyfieldis set tofalse)
Would love to hear your thoughts on that one 😁
CakePHP Version
6.0
massAssignable :+1:
Given that most folks interact with mass-assignment via the ORM methods, what about patchable?
This issue is stale because it has been open for 120 days with no activity. Remove the stale label or comment or this will be closed in 15 days