I am a newbie with Symfony (and also new to this forum), having a really hard time getting the DoctrineMongoDBBundle to work.

First, I have installed Symfony 2.1.7 (standard) by following the instructions. Every thing went smooth, and I also worked myself through some of the simple examples. All went well. But then I decided to install the DoctrineMongoDBBundle according to these instructions:

Fatal error: Class 'Symfony\Component\ClassLoader\DebugClassLoader' not found in /home/fast2/html-data/app/bootstrap.php.cache on line 542

All of the demo and example bundles that worked without problems before also throw this error.

Google and searching this forum wasn't really helpful, leaving me with the impression that I may be the only one with that problem, and that I missed something crucial during the process.I have no idea where the problem comes from. My only hint would be that something got broken during the update process as composer has installed several bundles that are still in development status.

OK, after some more digging I may have some more hints regarding this problem for you guys:

The composer notice appears to be strongly related to the fatal error I have ecountered. From looking at the composer.json file, after composer.phar update composer is supposed to run the following command:

As you can see composer removes all kinds of (important) bundles. As I found out the sensio/distribution-bundle appears to be responsible for updating the bootstrap.php.cache, so the post install/update-cmd in composer.json was supposed to fail.

So I just tried to update only the doctrine/mongodb-odm-bundle instead of updating everything in the json-file. The update was successfull, and the examples for the bundle appear to work flawlessly as far as I can say by now.

All in all this had been a very painful experience. I am still not sure whether the installation documentation for DoctrineMongoDBBundle is simply wrong of if something else behind the scenes is not working properly...the main problem is now that I cannot simply run composer.phar update without ruining my entire Symfony installation.