{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7362","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7362/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7362/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7362/events","html_url":"https://github.com/cakephp/cakephp/issues/7362","id":105264297,"number":7362,"title":"$_accessible accepting common arrays","user":{"login":"mylux","id":11030522,"avatar_url":"https://avatars.githubusercontent.com/u/11030522?v=3","gravatar_id":"","url":"https://api.github.com/users/mylux","html_url":"https://github.com/mylux","followers_url":"https://api.github.com/users/mylux/followers","following_url":"https://api.github.com/users/mylux/following{/other_user}","gists_url":"https://api.github.com/users/mylux/gists{/gist_id}","starred_url":"https://api.github.com/users/mylux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mylux/subscriptions","organizations_url":"https://api.github.com/users/mylux/orgs","repos_url":"https://api.github.com/users/mylux/repos","events_url":"https://api.github.com/users/mylux/events{/privacy}","received_events_url":"https://api.github.com/users/mylux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/RFC","name":"RFC","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/59","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.14","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/59/labels","id":1292952,"number":59,"title":"3.0.14","description":"Bugfixes and minor enhancements for 3.0.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":2,"state":"open","created_at":"2015-09-07T02:11:05Z","updated_at":"2015-09-07T20:38:02Z","due_on":"2015-09-27T04:00:00Z","closed_at":null},"comments":4,"created_at":"2015-09-07T20:27:42Z","updated_at":"2015-09-07T20:39:13Z","closed_at":null,"body":"Hello everybody,\r\nI've just noted that the special variable $_accessible in the Entity only accepts associative arrays, setting each property for true of false.\r\nOnce the properties not set as accessible are not accessible by default, I would like to propose to have this variable also accepting a list of field names and set them all to true.\r\nJust like the example below:\r\n\r\n<code>\r\n$_accessible=['name','age'];\r\n</code>\r\n\r\nWould be the pretty same as\r\n\r\n<code>\r\n$_accessible=['name'=>true,'age'=>true];\r\n</code>\r\n\r\nI am ok to make a PR in case you approve. Once it is backward compatible, is this OK to enter in the current version?"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/138374637","html_url":"https://github.com/cakephp/cakephp/issues/7362#issuecomment-138374637","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/7362","id":138374637,"user":{"login":"mylux","id":11030522,"avatar_url":"https://avatars.githubusercontent.com/u/11030522?v=3","gravatar_id":"","url":"https://api.github.com/users/mylux","html_url":"https://github.com/mylux","followers_url":"https://api.github.com/users/mylux/followers","following_url":"https://api.github.com/users/mylux/following{/other_user}","gists_url":"https://api.github.com/users/mylux/gists{/gist_id}","starred_url":"https://api.github.com/users/mylux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mylux/subscriptions","organizations_url":"https://api.github.com/users/mylux/orgs","repos_url":"https://api.github.com/users/mylux/repos","events_url":"https://api.github.com/users/mylux/events{/privacy}","received_events_url":"https://api.github.com/users/mylux/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T20:39:13Z","updated_at":"2015-09-07T20:39:13Z","body":"Isn't it the same as not include a field into the $_accessible variable?"}}