{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/6021","repository_url":"https://api.github.com/repos/doctrine/doctrine2","labels_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6021/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6021/comments","events_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6021/events","html_url":"https://github.com/doctrine/doctrine2/issues/6021","id":176320049,"number":6021,"title":"Unable to autowire argument index 0 ($em) for EntityRepository","user":{"login":"KIVagant","id":517501,"avatar_url":"https://avatars.githubusercontent.com/u/517501?v=3","gravatar_id":"","url":"https://api.github.com/users/KIVagant","html_url":"https://github.com/KIVagant","followers_url":"https://api.github.com/users/KIVagant/followers","following_url":"https://api.github.com/users/KIVagant/following{/other_user}","gists_url":"https://api.github.com/users/KIVagant/gists{/gist_id}","starred_url":"https://api.github.com/users/KIVagant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KIVagant/subscriptions","organizations_url":"https://api.github.com/users/KIVagant/orgs","repos_url":"https://api.github.com/users/KIVagant/repos","events_url":"https://api.github.com/users/KIVagant/events{/privacy}","received_events_url":"https://api.github.com/users/KIVagant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-12T08:28:17Z","updated_at":"2016-09-12T09:53:00Z","closed_at":null,"body":"Hello.\r\n\r\nI trying to inject one of my Entity Repository as argument of the service constructor in Symfony 2.  And I got the problem:\r\n\r\n```\r\nUnable to autowire argument index 0 ($em) for for the service \"autowired.*\\*\\*Repository\".\r\n If this is an object, give it a type-hint. Otherwise, specify this argument's value explicitly.\r\n```\r\n\r\nI found [this commit](https://github.com/doctrine/doctrine2/commit/dbd3fa4501ba062e749c2227bec4ac5934699df5) than can help to fix this.\r\n\r\nUnfortunately, this commit is present only [in the master](https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/EntityRepository.php#L64) but not in the [2.5 branch](https://github.com/doctrine/doctrine2/blob/2.5/lib/Doctrine/ORM/EntityRepository.php#L64).\r\n\r\nCan you fix this problem in 2.6 version?"},"comment":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/comments/246300879","html_url":"https://github.com/doctrine/doctrine2/issues/6021#issuecomment-246300879","issue_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6021","id":246300879,"user":{"login":"KIVagant","id":517501,"avatar_url":"https://avatars.githubusercontent.com/u/517501?v=3","gravatar_id":"","url":"https://api.github.com/users/KIVagant","html_url":"https://github.com/KIVagant","followers_url":"https://api.github.com/users/KIVagant/followers","following_url":"https://api.github.com/users/KIVagant/following{/other_user}","gists_url":"https://api.github.com/users/KIVagant/gists{/gist_id}","starred_url":"https://api.github.com/users/KIVagant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KIVagant/subscriptions","organizations_url":"https://api.github.com/users/KIVagant/orgs","repos_url":"https://api.github.com/users/KIVagant/repos","events_url":"https://api.github.com/users/KIVagant/events{/privacy}","received_events_url":"https://api.github.com/users/KIVagant/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T09:53:00Z","updated_at":"2016-09-12T09:53:00Z","body":"Yes, I caught the bug in Symfony2, but the real problem in the EntityManager constructor"}}
{"actor":{"display_login":"KIVagant"}}