{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/laravel/issues/3902","repository_url":"https://api.github.com/repos/laravel/laravel","labels_url":"https://api.github.com/repos/laravel/laravel/issues/3902/labels{/name}","comments_url":"https://api.github.com/repos/laravel/laravel/issues/3902/comments","events_url":"https://api.github.com/repos/laravel/laravel/issues/3902/events","html_url":"https://github.com/laravel/laravel/pull/3902","id":172531152,"number":3902,"title":"firstOrNew returns unexpected results when using non mass-assignable fields","user":{"login":"tjmckenzie","id":410898,"avatar_url":"https://avatars.githubusercontent.com/u/410898?v=3","gravatar_id":"","url":"https://api.github.com/users/tjmckenzie","html_url":"https://github.com/tjmckenzie","followers_url":"https://api.github.com/users/tjmckenzie/followers","following_url":"https://api.github.com/users/tjmckenzie/following{/other_user}","gists_url":"https://api.github.com/users/tjmckenzie/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmckenzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmckenzie/subscriptions","organizations_url":"https://api.github.com/users/tjmckenzie/orgs","repos_url":"https://api.github.com/users/tjmckenzie/repos","events_url":"https://api.github.com/users/tjmckenzie/events{/privacy}","received_events_url":"https://api.github.com/users/tjmckenzie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-22T19:14:07Z","updated_at":"2016-08-23T02:47:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/laravel/pulls/3902","html_url":"https://github.com/laravel/laravel/pull/3902","diff_url":"https://github.com/laravel/laravel/pull/3902.diff","patch_url":"https://github.com/laravel/laravel/pull/3902.patch"},"body":"When running Model::firstOrNew() with a non mass-assignable field (id), it always returns the very first table row, regardless if the row exists or not.\r\n\r\nSeems to have been introduced with this commit:\r\nhttps://github.com/laravel/framework/commit/df2761f0f3e24e884a9db0271044cff41238b564"},"comment":{"url":"https://api.github.com/repos/laravel/laravel/issues/comments/241611846","html_url":"https://github.com/laravel/laravel/pull/3902#issuecomment-241611846","issue_url":"https://api.github.com/repos/laravel/laravel/issues/3902","id":241611846,"user":{"login":"miscbits","id":8864479,"avatar_url":"https://avatars.githubusercontent.com/u/8864479?v=3","gravatar_id":"","url":"https://api.github.com/users/miscbits","html_url":"https://github.com/miscbits","followers_url":"https://api.github.com/users/miscbits/followers","following_url":"https://api.github.com/users/miscbits/following{/other_user}","gists_url":"https://api.github.com/users/miscbits/gists{/gist_id}","starred_url":"https://api.github.com/users/miscbits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miscbits/subscriptions","organizations_url":"https://api.github.com/users/miscbits/orgs","repos_url":"https://api.github.com/users/miscbits/repos","events_url":"https://api.github.com/users/miscbits/events{/privacy}","received_events_url":"https://api.github.com/users/miscbits/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T02:47:09Z","updated_at":"2016-08-23T02:47:09Z","body":"There is one issue with that though. If there is a mutator on an attribute that is not mass assignable, then the array merge fix will not mutate the attribute. This means that we come back into the original issue."}}
{"actor":{"display_login":"miscbits"}}