I am working on a Zend Framework project that leverages Doctrine 2. I\'m trying to get Symfony\'s DI container working with the project as well, but I\'m having trouble. Sup
A Doctrine Entity is a newable, not an injectable. Entities are not supposed to be created through a DIC. See this following blog post on the difference between newable and injectable: