doctrine/DoctrineBundle — pull request #13 by mkrinke (2012-01-24 14:54:57+00:00)
Title: configurable namespace for cache keys

If you are using a master/slave setup (e.g. mysql) you have different connections for master and slave. however both provide the same data, so when using the result cache it should be cached using the same key.

This patch does not change the default behavior.
It allows you to extend your doctrine configuration:

```yaml
doctrine:
orm:
master:
connection: master
result_cache_driver:
type: apc
namespaceComposition: [path, env]
```

if namespaceComposition is specified and not empty only the named parts will be included in the namespace computation.

possible values are: name, path, env (the default)
the order in which they are specified does not matter.