FriendsOfSymfony/FOSUserBundle — Issue #531: Problem with APC
Author: tiagojsag
Created: 2012-02-10 11:24:56+00:00
State: open

Hi, guys

I've been using FOSUser for a while now, and production time has arrived, so I tried to fire up APC to speed up stuff.

According to http://symfony.com/doc/2.0/reference/configuration/doctrine.html and a couple of other sources online, the doctrine config should look like this:

```doctrine:
dbal:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8

orm:
auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true
metadata_cache_driver: apc
result_cache_driver: apc
query_cache_driver: apc
```

However, if I use the following configuration, I always get:
```Unrecognized field: usernameCanonical ```

If I comment out the metadata_cache_driver line, everything works fine.
Is this a FOSUserBundle issue, or should i report it somewhere.
Any clue on what's happning?

cheers