kayue / KayueWordpressBundle

A Symfony 2 bundle for providing WordPress repositories and authenticating users (login).
101 stars 43 forks source link

Different database for WP? #25

Closed seltzlab closed 9 years ago

seltzlab commented 10 years ago

Hi, is it possible to use a database for Symfony2 application and a separated database for WP? Many thanks

kayue commented 10 years ago

I have not tested this but you could try to change the entity_manager option in config.

kayue_wordpress:
    # Optional: Entity manager configuration to use (cache etc). Default is 'default'.
    entity_manager: 'default'

Please read How to work with Multiple Entity Managers and Connections for more information.

kayue commented 9 years ago

@seltzlab Confirmed it is possible in v2.0.0-BETA1, via the connection setting in config file. :p