From c26bbcafcc94b79dd539c3c05dc0517311625c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 8 Jan 2024 16:04:32 +0100 Subject: [PATCH] Replace sample configuration from flex recipes examples https://github.com/symfony/recipes-contrib/blob/main/doctrine/mongodb-odm-bundle/4.4/config/packages/doctrine_mongodb.yaml --- docs/config.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/config.rst b/docs/config.rst index d4f7eaae..53e30134 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -18,11 +18,11 @@ Sample Configuration document_managers: default: mappings: - App: ~ - filters: - filter-name: - class: Class\Example\Filter\ODM\ExampleFilter - enabled: true + App: + is_bundle: false + dir: '%kernel.project_dir%/src/Document' + prefix: 'App\Document' + alias: App metadata_cache_driver: array # array, service, apcu, memcached, redis .. code-block:: xml @@ -41,8 +41,7 @@ Sample Configuration - - + @@ -62,9 +61,10 @@ Sample Configuration $config->defaultDatabase('hello_' . param('kernel.environment')); $config->documentManager('default') ->mapping('App') - ->filter('filter-name') - ->class(\Class\Example\Filter\ODM\ExampleFilter::class) - ->enabled(true) + ->isBundle(false) + ->dir(param('kernel.project_dir') . '/src/Document') + ->prefix('App\\Document') + ->alias('App') ->metadataCacheDriver('array'); // array, service, apcu, memcached, redis }; }