diff --git a/cookbook/doctrine/mongodb.rst b/cookbook/doctrine/mongodb.rst index 3e9297ca47b..00fba3dcfb9 100644 --- a/cookbook/doctrine/mongodb.rst +++ b/cookbook/doctrine/mongodb.rst @@ -20,7 +20,7 @@ just need to enable it and specify the bundle that contains your mapped document # app/config/config.yml - doctrine_mongo_db: + doctrine_mongodb: document_managers: default: mappings: @@ -173,7 +173,7 @@ Configuration .. code-block:: yaml # app/config/config.yml - doctrine_mongo_db: + doctrine_mongodb: connections: default: server: mongodb://localhost:27017 @@ -194,7 +194,7 @@ If you wish to use memcache to cache your metadata, you need to configure the .. code-block:: yaml # app/config/config.yml - doctrine_mongo_db: + doctrine_mongodb: default_database: hello_%kernel.environment% connections: default: @@ -218,26 +218,26 @@ If you wish to use memcache to cache your metadata, you need to configure the - - - - - Doctrine\Common\Cache\MemcacheCache - localhost - 11211 - Memcache - - - - - true - - - + + + + + Doctrine\Common\Cache\MemcacheCache + localhost + 11211 + Memcache + + + + + true + + + Mapping Configuration @@ -283,7 +283,7 @@ The following configuration shows a bunch of mapping examples: .. code-block:: yaml - doctrine_mongo_db: + doctrine_mongodb: document_managers: default: mappings: @@ -325,7 +325,7 @@ following syntax: .. code-block:: yaml - doctrine_mongo_db: + doctrine_mongodb: default_database: hello_%kernel.environment% default_connection: conn2 default_document_manager: dm2 @@ -356,33 +356,33 @@ following syntax: - - - - true - - - - - true - - - - - - - - - + + + true + + + + + true + + + + + + + + + Now you can retrieve the configured services connection services::