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
"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.