{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8118","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8118/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8118/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8118/events","html_url":"https://github.com/yiisoft/yii2/issues/8118","id":69278706,"number":8118,"title":"Detach behavior by class name","user":{"login":"arogachev","id":8326201,"avatar_url":"https://avatars.githubusercontent.com/u/8326201?v=3","gravatar_id":"","url":"https://api.github.com/users/arogachev","html_url":"https://github.com/arogachev","followers_url":"https://api.github.com/users/arogachev/followers","following_url":"https://api.github.com/users/arogachev/following{/other_user}","gists_url":"https://api.github.com/users/arogachev/gists{/gist_id}","starred_url":"https://api.github.com/users/arogachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arogachev/subscriptions","organizations_url":"https://api.github.com/users/arogachev/orgs","repos_url":"https://api.github.com/users/arogachev/repos","events_url":"https://api.github.com/users/arogachev/events{/privacy}","received_events_url":"https://api.github.com/users/arogachev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-18T07:11:53Z","updated_at":"2015-04-18T07:11:53Z","closed_at":null,"body":"Detaching named behavior is easy and covered in docs [here](http://www.yiiframework.com/doc-2.0/guide-concept-behaviors.html#detaching-behaviors).\r\n\r\nBut if no name given, we have to loop through `behaviors()` configurational array and compare classes until they match. It's not a big problem, but I think it will be better if framework will have support of detaching by class name."}}