{"action":"created","issue":{"url":"https://api.github.com/repos/sulu/sulu/issues/2379","repository_url":"https://api.github.com/repos/sulu/sulu","labels_url":"https://api.github.com/repos/sulu/sulu/issues/2379/labels{/name}","comments_url":"https://api.github.com/repos/sulu/sulu/issues/2379/comments","events_url":"https://api.github.com/repos/sulu/sulu/issues/2379/events","html_url":"https://github.com/sulu/sulu/pull/2379","id":154191212,"number":2379,"title":"inject CollectionRepositoy in MediaManager to avoid using removed constant","user":{"login":"danrot","id":405874,"avatar_url":"https://avatars.githubusercontent.com/u/405874?v=3","gravatar_id":"","url":"https://api.github.com/users/danrot","html_url":"https://github.com/danrot","followers_url":"https://api.github.com/users/danrot/followers","following_url":"https://api.github.com/users/danrot/following{/other_user}","gists_url":"https://api.github.com/users/danrot/gists{/gist_id}","starred_url":"https://api.github.com/users/danrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrot/subscriptions","organizations_url":"https://api.github.com/users/danrot/orgs","repos_url":"https://api.github.com/users/danrot/repos","events_url":"https://api.github.com/users/danrot/events{/privacy}","received_events_url":"https://api.github.com/users/danrot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T08:49:24Z","updated_at":"2016-05-11T08:51:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sulu/sulu/pulls/2379","html_url":"https://github.com/sulu/sulu/pull/2379","diff_url":"https://github.com/sulu/sulu/pull/2379.diff","patch_url":"https://github.com/sulu/sulu/pull/2379.patch"},"body":"| Q | A\r\n| --- | ---\r\n| Bug fix? | yes\r\n| New feature? | no\r\n| BC breaks? | no\r\n| Deprecations? | no\r\n| Fixed tickets | none\r\n| Related issues/PRs | #2359 \r\n| License | MIT\r\n| Documentation PR | none\r\n\r\n#### What's in this PR?\r\n\r\nThis PR removes the usage of the entity manager to get the `CollectionRepository` using the entity manager and injects the `CollectionRepository` instead.\r\n\r\n#### Why?\r\n\r\n#2359 removed some constants, but another usage of this constant was added in the `develop` branch. "},"comment":{"url":"https://api.github.com/repos/sulu/sulu/issues/comments/218399938","html_url":"https://github.com/sulu/sulu/pull/2379#issuecomment-218399938","issue_url":"https://api.github.com/repos/sulu/sulu/issues/2379","id":218399938,"user":{"login":"alexander-schranz","id":1698337,"avatar_url":"https://avatars.githubusercontent.com/u/1698337?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-schranz","html_url":"https://github.com/alexander-schranz","followers_url":"https://api.github.com/users/alexander-schranz/followers","following_url":"https://api.github.com/users/alexander-schranz/following{/other_user}","gists_url":"https://api.github.com/users/alexander-schranz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-schranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-schranz/subscriptions","organizations_url":"https://api.github.com/users/alexander-schranz/orgs","repos_url":"https://api.github.com/users/alexander-schranz/repos","events_url":"https://api.github.com/users/alexander-schranz/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-schranz/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T08:51:36Z","updated_at":"2016-05-11T08:51:36Z","body":"@danrot I think you mean categoryRepository?"}}