{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataClassificationBundle/issues/227","repository_url":"https://api.github.com/repos/sonata-project/SonataClassificationBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataClassificationBundle/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataClassificationBundle/issues/227/comments","events_url":"https://api.github.com/repos/sonata-project/SonataClassificationBundle/issues/227/events","html_url":"https://github.com/sonata-project/SonataClassificationBundle/issues/227","id":167182630,"number":227,"title":"getContext method try to add a lot of default contexts","user":{"login":"bartosz-malec","id":13161733,"avatar_url":"https://avatars.githubusercontent.com/u/13161733?v=3","gravatar_id":"","url":"https://api.github.com/users/bartosz-malec","html_url":"https://github.com/bartosz-malec","followers_url":"https://api.github.com/users/bartosz-malec/followers","following_url":"https://api.github.com/users/bartosz-malec/following{/other_user}","gists_url":"https://api.github.com/users/bartosz-malec/gists{/gist_id}","starred_url":"https://api.github.com/users/bartosz-malec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartosz-malec/subscriptions","organizations_url":"https://api.github.com/users/bartosz-malec/orgs","repos_url":"https://api.github.com/users/bartosz-malec/repos","events_url":"https://api.github.com/users/bartosz-malec/events{/privacy}","received_events_url":"https://api.github.com/users/bartosz-malec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-23T12:40:39Z","updated_at":"2016-07-23T13:39:35Z","closed_at":"2016-07-23T13:39:35Z","body":"I have problem after upgrade my bundles to version 3.\r\n\r\nTo medias which are currently exists in my project, getContext method of CategoryManager class want to add a lot of default contexts. I think the problem is in https://github.com/sonata-project/SonataClassificationBundle/blob/3.x/Entity/CategoryManager.php#L248\r\n\r\nIt shouldn't be `$context = $this->contextManager->findByName($contextCode);`?\r\n\r\nManager looking for contextCode = default."},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataClassificationBundle/issues/comments/234718729","html_url":"https://github.com/sonata-project/SonataClassificationBundle/issues/227#issuecomment-234718729","issue_url":"https://api.github.com/repos/sonata-project/SonataClassificationBundle/issues/227","id":234718729,"user":{"login":"bartosz-malec","id":13161733,"avatar_url":"https://avatars.githubusercontent.com/u/13161733?v=3","gravatar_id":"","url":"https://api.github.com/users/bartosz-malec","html_url":"https://github.com/bartosz-malec","followers_url":"https://api.github.com/users/bartosz-malec/followers","following_url":"https://api.github.com/users/bartosz-malec/following{/other_user}","gists_url":"https://api.github.com/users/bartosz-malec/gists{/gist_id}","starred_url":"https://api.github.com/users/bartosz-malec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartosz-malec/subscriptions","organizations_url":"https://api.github.com/users/bartosz-malec/orgs","repos_url":"https://api.github.com/users/bartosz-malec/repos","events_url":"https://api.github.com/users/bartosz-malec/events{/privacy}","received_events_url":"https://api.github.com/users/bartosz-malec/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T13:39:35Z","updated_at":"2016-07-23T13:39:35Z","body":"Problem resolved. I've added context Id as integer not string."}}
{"actor":{"display_login":"bartosz-malec"}}