You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating an multi-tenancy application with a separated database setup
Therefore I have created two entity-managers in the doctrine configuration and based on the hostname in the browser OR the given --tenant=<name> option on the console I am switching the database connection (and even load entities from a certain namespace).
Because the "main" database (running behind the default entity-manager) contains central information about all tenants, but also needs oAuth authentication for the frontend applications.
Besides that I want to setup every tenant to have separated oAuth authentication as well.
The routes like for the authorize and obtaining the tokens, could be the same, that's not problem
But because of the configured entity_manager in your bundle's config, I can't run "doctrine:schema:update" to create the tables on each (tenant) connection.
I think the bundle should respect the --em or --connection setting from the commands and not using it's own implementation which does not gives me any freedom of integration.
Hope you understand my point of view and maybe you have any suggestion how I can achieve my goal :-)
Thanks in advance.
Regards, Bert
The text was updated successfully, but these errors were encountered:
Hi,
I am creating an multi-tenancy application with a separated database setup
Therefore I have created two entity-managers in the doctrine configuration and based on the hostname in the browser OR the given
--tenant=<name>
option on the console I am switching the database connection (and even load entities from a certain namespace).Because the "main" database (running behind the default entity-manager) contains central information about all tenants, but also needs oAuth authentication for the frontend applications.
Besides that I want to setup every tenant to have separated oAuth authentication as well.
The routes like for the authorize and obtaining the tokens, could be the same, that's not problem
But because of the configured entity_manager in your bundle's config, I can't run "doctrine:schema:update" to create the tables on each (tenant) connection.
I think the bundle should respect the
--em
or--connection
setting from the commands and not using it's own implementation which does not gives me any freedom of integration.Hope you understand my point of view and maybe you have any suggestion how I can achieve my goal :-)
Thanks in advance.
Regards, Bert
The text was updated successfully, but these errors were encountered: