{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/6057","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/6057/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/6057/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/6057/events","html_url":"https://github.com/yiisoft/yii2/pull/6057","id":48833102,"number":6057,"title":"Added SofDeleteBehavior","user":{"login":"Skysplit","id":3975381,"avatar_url":"https://avatars.githubusercontent.com/u/3975381?v=3","gravatar_id":"","url":"https://api.github.com/users/Skysplit","html_url":"https://github.com/Skysplit","followers_url":"https://api.github.com/users/Skysplit/followers","following_url":"https://api.github.com/users/Skysplit/following{/other_user}","gists_url":"https://api.github.com/users/Skysplit/gists{/gist_id}","starred_url":"https://api.github.com/users/Skysplit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skysplit/subscriptions","organizations_url":"https://api.github.com/users/Skysplit/orgs","repos_url":"https://api.github.com/users/Skysplit/repos","events_url":"https://api.github.com/users/Skysplit/events{/privacy}","received_events_url":"https://api.github.com/users/Skysplit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:under%20discussion","name":"status:under discussion","color":"f7c6c7"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:feature","name":"type:feature","color":"02d7e1"}],"state":"open","locked":false,"assignee":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/13","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.5","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/13/labels","id":1000704,"number":13,"title":"2.0.5","description":"","creator":{"login":"qiangxue","id":993322,"avatar_url":"https://avatars.githubusercontent.com/u/993322?v=3","gravatar_id":"","url":"https://api.github.com/users/qiangxue","html_url":"https://github.com/qiangxue","followers_url":"https://api.github.com/users/qiangxue/followers","following_url":"https://api.github.com/users/qiangxue/following{/other_user}","gists_url":"https://api.github.com/users/qiangxue/gists{/gist_id}","starred_url":"https://api.github.com/users/qiangxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiangxue/subscriptions","organizations_url":"https://api.github.com/users/qiangxue/orgs","repos_url":"https://api.github.com/users/qiangxue/repos","events_url":"https://api.github.com/users/qiangxue/events{/privacy}","received_events_url":"https://api.github.com/users/qiangxue/received_events","type":"User","site_admin":false},"open_issues":73,"closed_issues":77,"state":"open","created_at":"2015-03-01T16:03:07Z","updated_at":"2015-06-26T12:58:00Z","due_on":"2015-07-26T04:00:00Z","closed_at":null},"comments":18,"created_at":"2014-11-14T19:58:34Z","updated_at":"2015-06-28T04:06:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/6057","html_url":"https://github.com/yiisoft/yii2/pull/6057","diff_url":"https://github.com/yiisoft/yii2/pull/6057.diff","patch_url":"https://github.com/yiisoft/yii2/pull/6057.patch"},"body":"Related to #2484\r\n\r\nI am looking forward your opinion and notices.\r\n\r\nThings to be done yet:\r\n\r\n- [x] Documentation with examples\r\n- [x] Tests"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/116190729","html_url":"https://github.com/yiisoft/yii2/pull/6057#issuecomment-116190729","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/6057","id":116190729,"user":{"login":"m8rge","id":575777,"avatar_url":"https://avatars.githubusercontent.com/u/575777?v=3","gravatar_id":"","url":"https://api.github.com/users/m8rge","html_url":"https://github.com/m8rge","followers_url":"https://api.github.com/users/m8rge/followers","following_url":"https://api.github.com/users/m8rge/following{/other_user}","gists_url":"https://api.github.com/users/m8rge/gists{/gist_id}","starred_url":"https://api.github.com/users/m8rge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m8rge/subscriptions","organizations_url":"https://api.github.com/users/m8rge/orgs","repos_url":"https://api.github.com/users/m8rge/repos","events_url":"https://api.github.com/users/m8rge/events{/privacy}","received_events_url":"https://api.github.com/users/m8rge/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T04:06:30Z","updated_at":"2015-06-28T04:06:30Z","body":"@Skysplit Trait, that i described in https://github.com/yiisoft/yii2/pull/6057#issuecomment-70468321 can configure all that need for Soft delete. Hardly you want do detach SoftDelete behavior.\r\n> The difference between execution beaviour and trait won't be even noticable\r\nOf corse, if you working with one model, difference won't be even noticeable. But if you fetching 1000 or  more models, you will see the difference.\r\n\r\nEx.: 1000 models without trait and behavior are created in ~1.09 sec.  \r\n1000 models with trait are created in ~1.09 sec.  \r\n1000 models with behavior created in ~1.17 sec.\r\n\r\nAnd this is one behavior. Add bunch of behaviors and you app will work slowly. Less behaviors is better."}}