I've been using the FOSUserBundle and the FOSOAuthBundle without issue in a project for a while now, but I've recently added another DB connection and another entity manager and, as a result, can no longer rely on auto_mapping.
I've added mapping for both of the bundles to one of the entity managers and everything seemed to be working OK.
However I've found an issue with the User no longer generating the correct schema when running app/console doctrine:schema:create
, suggesting a mapping issue. It's worth noting that the client from FOSOAuthBundle is mapping OK.
It looks to me that the mapping in the FOSUserBundle is being ignored and I'm not sure what I'm doing wrong.
Entity Manager set up:
orm:
default_entity_manager: default
auto_generate_proxy_classes: %kernel.debug%
entity_managers:
other:
connection: other
mappings:
SteveMainBundle: ~
default:
connection: default
mappings:
SteveMainBundle: ~
SteveWebBundle: ~
FOSUserBundle: ~
FOSOAuthServerBundle: ~
fos_user set up:
fos_user:
db_driver: orm
firewall_name: main
user_class: Steve\MainBundle\Entity\User
Any ideas?