{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/382","labels_url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/382/comments","events_url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/382/events","html_url":"https://github.com/doctrine/DoctrineBundle/issues/382","id":55786482,"number":382,"title":"appDevDebugProjectContainer::getDoctrine_Orm_DefaultEntityManagerService() doesn't work","user":{"login":"phansys","id":1231441,"avatar_url":"https://avatars.githubusercontent.com/u/1231441?v=3","gravatar_id":"","url":"https://api.github.com/users/phansys","html_url":"https://github.com/phansys","followers_url":"https://api.github.com/users/phansys/followers","following_url":"https://api.github.com/users/phansys/following{/other_user}","gists_url":"https://api.github.com/users/phansys/gists{/gist_id}","starred_url":"https://api.github.com/users/phansys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansys/subscriptions","organizations_url":"https://api.github.com/users/phansys/orgs","repos_url":"https://api.github.com/users/phansys/repos","events_url":"https://api.github.com/users/phansys/events{/privacy}","received_events_url":"https://api.github.com/users/phansys/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-28T17:19:58Z","updated_at":"2015-04-09T13:36:48Z","closed_at":"2015-01-31T18:39:42Z","body":"Since #381, ```appDevDebugProjectContainer::getDoctrine_Orm_DefaultEntityManagerService()``` calls ```\\Doctrine\\ORM\\EntityManager::__construct()``` (tries to create a new instance of a class with a protected constructor) instead of calling ```\\Doctrine\\ORM\\EntityManager::create()```:\r\n\r\n```\r\nPHP Fatal error:  Call to protected Doctrine\\ORM\\EntityManager::__construct() from context 'appDevDebugProjectContainer' in /path/to/app/cache/dev/appDevDebugProjectContainer.php on line ...\r\n```\r\nThere are my installed versions of ```doctrine/orm``` and ```symfony/symfony```:\r\n\r\n```\r\n$ composer show -i doctrine/orm\r\nname     : doctrine/orm\r\ndescrip. : Object-Relational-Mapper for PHP\r\nkeywords : database, orm\r\nversions : * dev-master, 2.5.x-dev\r\ntype     : library\r\nlicense  : MIT\r\nsource   : [git] https://github.com/doctrine/doctrine2.git ffaffa0b8a577d5778e973ce5af65596fd3d2306\r\ndist     : [zip] https://api.github.com/repos/doctrine/doctrine2/zipball/ffaffa0b8a577d5778e973ce5af65596fd3d2306 ffaffa0b8a577d5778e973ce5af65596fd3d2306\r\nnames    : doctrine/orm\r\n...\r\n```\r\n```\r\n$ composer show -i symfony/symfony\r\nname     : symfony/symfony\r\ndescrip. : The Symfony PHP framework\r\nkeywords : framework\r\nversions : * dev-master, 2.6.x-dev\r\ntype     : library\r\nlicense  : MIT\r\nsource   : [git] https://github.com/symfony/symfony.git ad74db991610fb6a43e4058cf80a715aace35144\r\ndist     : [zip] https://api.github.com/repos/symfony/symfony/zipball/ad74db991610fb6a43e4058cf80a715aace35144 ad74db991610fb6a43e4058cf80a715aace35144\r\nnames    : symfony/symfony, symfony/browser-kit, symfony/class-loader, symfony/config, symfony/console, symfony/css-selector, symfony/debug, symfony/debug-bundle, symfony/dependency-injection, symfony/doctrine-bridge, symfony/dom-crawler, symfony/event-dispatcher, symfony/expression-language, symfony/filesystem, symfony/finder, symfony/form, symfony/framework-bundle, symfony/http-foundation, symfony/http-kernel, symfony/intl, symfony/locale, symfony/monolog-bridge, symfony/options-resolver, symfony/process, symfony/propel1-bridge, symfony/property-access, symfony/proxy-manager-bridge, symfony/routing, symfony/security, symfony/security-acl, symfony/security-bundle, symfony/security-core, symfony/security-csrf, symfony/security-http, symfony/serializer, symfony/stopwatch, symfony/templating, symfony/translation, symfony/twig-bridge, symfony/twig-bundle, symfony/validator, symfony/var-dumper, symfony/web-profiler-bundle, symfony/yaml\r\n...\r\n```\r\n\r\nThe last commit that works in my environment is @c12410c. Now I just changed my requirements from  ```\"doctrine/doctrine-bundle\": \"~1.2\"``` to ```\"doctrine/doctrine-bundle\": \"dev-master#c12410c as 1.2\"```."},"comment":{"url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/comments/91233322","html_url":"https://github.com/doctrine/DoctrineBundle/issues/382#issuecomment-91233322","issue_url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/382","id":91233322,"user":{"login":"nicolas-san","id":7702787,"avatar_url":"https://avatars.githubusercontent.com/u/7702787?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-san","html_url":"https://github.com/nicolas-san","followers_url":"https://api.github.com/users/nicolas-san/followers","following_url":"https://api.github.com/users/nicolas-san/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-san/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-san/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-san/subscriptions","organizations_url":"https://api.github.com/users/nicolas-san/orgs","repos_url":"https://api.github.com/users/nicolas-san/repos","events_url":"https://api.github.com/users/nicolas-san/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-san/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T13:36:48Z","updated_at":"2015-04-09T13:36:48Z","body":"@hafuta @kminh \r\nI experience the same today, to solve it, I take the composer.json https://github.com/symfony/symfony-standard/blob/2.6/composer.json here, take the Require part, add the 3rd party bundle I need, and it's ok.\r\n```\r\n    \"require\": {\r\n        \"php\": \">=5.3.3\",\r\n        \"symfony/symfony\": \"2.6.*\",\r\n        \"doctrine/orm\": \"~2.2,>=2.2.3,<2.5\",\r\n        \"doctrine/dbal\": \"<2.5\",\r\n        \"doctrine/doctrine-bundle\": \"~1.2\",\r\n        \"twig/extensions\": \"~1.0\",\r\n        \"symfony/assetic-bundle\": \"~2.3\",\r\n        \"symfony/swiftmailer-bundle\": \"~2.3\",\r\n        \"symfony/monolog-bundle\": \"~2.4\",\r\n        \"sensio/distribution-bundle\": \"~3.0,>=3.0.12\",\r\n        \"sensio/framework-extra-bundle\": \"~3.0,>=3.0.2\",\r\n        \"incenteev/composer-parameter-handler\": \"~2.0\"\r\n```"}}