DoctrineBundle: Fatal error: Call to protected DoctrineORMEntityManager_00000000269a7ffd000000007f98586228a0c7188fe871033e49ce7a85e414ea::__construct() from context 'appDevDebugProjectContainer'
I’ve recently updated Symfony from 2.7 to 2.8, in the process of upgrading to 3.0 next
I have stripped down composer.json and re-built from scratch. This is the output of composer show -i
for the doctrine and symfony packages:
doctrine/cache v1.7.0 Caching library offering an object-oriented API for many cache backends
doctrine/collections v1.5.0 Collections Abstraction library
doctrine/common v2.8.0 Common Library for Doctrine projects
doctrine/data-fixtures v1.3.1 Data Fixtures for all Doctrine Object Managers
doctrine/dbal v2.6.0 Database Abstraction Layer
doctrine/doctrine-bundle 1.9.1 Symfony DoctrineBundle
doctrine/doctrine-cache-bundle 1.3.3 Symfony Bundle for Doctrine Cache
doctrine/doctrine-fixtures-bundle v2.4.1 Symfony DoctrineFixturesBundle
doctrine/doctrine-migrations-bundle v1.3.1 Symfony DoctrineMigrationsBundle
doctrine/inflector v1.2.0 Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator 1.1.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations v1.5.0 Database Schema migrations using Doctrine DBAL
doctrine/orm v2.6.1 Object-Relational-Mapper for PHP
friendsofsymfony/oauth-server-bundle 1.6.1 Symfony2 OAuth Server Bundle
friendsofsymfony/oauth2-php 1.2.2 OAuth2 library
friendsofsymfony/rest-bundle 2.3.1 This Bundle provides various tools to rapidly develop RESTful API's with Symfony
friendsofsymfony/user-bundle v2.1.2 Symfony FOSUserBundle
ensio/distribution-bundle v5.0.22 Base bundle for Symfony Distributions
sensio/framework-extra-bundle v3.0.29 This bundle provides a way to configure your controllers with annotations
sensio/generator-bundle v3.1.7 This bundle generates code for you
sensiolabs/security-checker v4.1.8 A security checker for your composer.lock
symfony/assetic-bundle v2.8.2 Integrates Assetic into Symfony2
symfony/console v3.0.0 Symfony Console Component
symfony/monolog-bundle v3.3.0 Symfony MonologBundle
symfony/polyfill-intl-icu v1.8.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring v1.8.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php54 v1.8.0 Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions
symfony/polyfill-php55 v1.8.0 Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions
symfony/polyfill-php56 v1.8.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70 v1.8.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util v1.8.0 Symfony utilities for portability of PHP codes
symfony/security-acl v2.8.0 Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v3.2.2 Symfony SwiftmailerBundle
symfony/symfony v2.8.0 The Symfony PHP framework```
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (6 by maintainers)
I think I solved the problem by changing the package version of multiple packages. It was too long ago for me to remember exactly what I changed. Maybe if I post the composer.json that I have now, you could try that and see if it works for you: