Permalink
Browse files

Merge pull request #173 from WesleyVanOpdorp/FilterDocumentation

Filter documentation
  • Loading branch information...
2 parents ae16f64 + 7cac746 commit 191f93335c4923db2bd8afbc2538b8d850c01e4d @jmikola jmikola committed Feb 13, 2013
Showing with 25 additions and 0 deletions.
  1. +25 −0 Resources/doc/config.rst
View
25 Resources/doc/config.rst
@@ -17,6 +17,10 @@ Sample Configuration
default:
mappings:
AcmeDemoBundle: ~
+ filters:
+ filter-name:
+ class: Class\Example\Filter\ODM\ExampleFilter
+ enabled: true
metadata_cache_driver: array # array, apc, xcache, memcache
If you wish to use memcache to cache your metadata, you need to configure the
@@ -138,6 +142,27 @@ The following configuration shows a bunch of mapping examples:
prefix: DoctrineExtensions\Documents\
alias: DExt
+Filters
+~~~~~~~
+
+You can easily add filters to a document manager by using the
+following syntax:
+
+.. code-block:: yaml
+
+ doctrine_mongodb:
+ document_managers:
+ default:
+ filters:
+ filter-one:
+ class: Class\ExampleOne\Filter\ODM\ExampleFilter
+ enabled: true
+ filter-two:
+ class: Class\ExampleTwo\Filter\ODM\ExampleFilter
+ enabled: false
+
+Filters are used to append conditions to the queryBuilder regardless of where the query is generated.
+
Multiple Connections
~~~~~~~~~~~~~~~~~~~~

0 comments on commit 191f933

Please sign in to comment.