Integrates EntityManager into Symfony 2.1