Symfony MongoId Class not found error

I am using Symfony3 and I have used mongo db in my application.

I have include the following in my composer.json file

  • Access host IP inside docker container using docker-compose
  • docker - does it bypass instance-checking limitation like virtual machine
  • docker https for local development
  • what does VOLUME command do in Dockerfile?
  • Install nginx dynamic module using docker compose
  • Finding Containers Using Docker VirtualBox
  • "doctrine/mongodb-odm": "^1.0@dev",
    "doctrine/mongodb-odm-bundle": "^3.0@dev",

    I have tried couple of solutions from internet but following error is coming

    Fatal error: Class 'MongoId' not found in /var/www/vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Id/AutoGenerator.php on line 34

    Please if any one can help me in this. It will be really appreciated.

    Thank You

  • Git clone repo in Dockerfile lags
  • Use Docker with my Ubuntu 14.04 (web access)
  • Docker-machine ip in Dockerfile
  • Attaching a Docker Container automatically to an IP Address/DNS
  • Docker with php built-in server
  • Enterprise Apps with Docker and Elastic Beanstalk
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.