{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/14008","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/14008/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/14008/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/14008/events","html_url":"https://github.com/laravel/framework/issues/14008","id":160453457,"number":14008,"title":"Soft deleting pivot table","user":{"login":"Spharian","id":2619388,"avatar_url":"https://avatars.githubusercontent.com/u/2619388?v=3","gravatar_id":"","url":"https://api.github.com/users/Spharian","html_url":"https://github.com/Spharian","followers_url":"https://api.github.com/users/Spharian/followers","following_url":"https://api.github.com/users/Spharian/following{/other_user}","gists_url":"https://api.github.com/users/Spharian/gists{/gist_id}","starred_url":"https://api.github.com/users/Spharian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spharian/subscriptions","organizations_url":"https://api.github.com/users/Spharian/orgs","repos_url":"https://api.github.com/users/Spharian/repos","events_url":"https://api.github.com/users/Spharian/events{/privacy}","received_events_url":"https://api.github.com/users/Spharian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laravel/framework/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/laravel/framework/labels/database","name":"database","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-15T15:34:56Z","updated_at":"2016-06-17T22:51:56Z","closed_at":null,"body":"I have a pivot table, it's model is using the `SoftDeletes` trait and it's migration contains `$table->softDeletes()`.\r\n\r\nWhen using `$thing->whatever()->detach($whateverId)`, the pivot's row is removed. Shouldn't the `deleted_at` value be updated on the concerned row instead?"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/226899679","html_url":"https://github.com/laravel/framework/issues/14008#issuecomment-226899679","issue_url":"https://api.github.com/repos/laravel/framework/issues/14008","id":226899679,"user":{"login":"themsaid","id":4332182,"avatar_url":"https://avatars.githubusercontent.com/u/4332182?v=3","gravatar_id":"","url":"https://api.github.com/users/themsaid","html_url":"https://github.com/themsaid","followers_url":"https://api.github.com/users/themsaid/followers","following_url":"https://api.github.com/users/themsaid/following{/other_user}","gists_url":"https://api.github.com/users/themsaid/gists{/gist_id}","starred_url":"https://api.github.com/users/themsaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themsaid/subscriptions","organizations_url":"https://api.github.com/users/themsaid/orgs","repos_url":"https://api.github.com/users/themsaid/repos","events_url":"https://api.github.com/users/themsaid/events{/privacy}","received_events_url":"https://api.github.com/users/themsaid/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T22:51:56Z","updated_at":"2016-06-17T22:51:56Z","body":"I'm not sure if this can be considered a bug, imho soft deletion is about `deletion` of entities not pivot data, I don't think `detach()` should just update the `deleted_at` column, how would you restore the relation after soft deleting it then? Also how would I determine a specific relation as soft deletable? It shouldn't depend on the relation models, what if one model in the relation is soft deletable while the other is not?"}}
{"actor":{"display_login":"themsaid"}}