You are browsing a version that is no longer maintained.
The Doctrine MongoDB project is an abstraction layer on top of the legacy PHP driver that the Doctrine MongoDB ODM project is built on top of.
This project has been deprecated and the MongoDB ODM project will soon no longer depend on it. The project is also in bug-fixes-only mode.
Creating new connections is easy using the
With the connection you can start selecting databases using the
1 $database = $connection->selectDatabase('my_project_database');
Now you are ready to select a collection and insert some data using the
Reading data is easy using the
1 $user = $users->findOne(['username' => 'jwage']);
Updating a record is simple using the
1 $users->update(['username' => 'jwage'], ['$set' => ['isActive' => true]]);