I am working on a Symfony 2 project where each user has their own database. In my config.yml file, I have the doctrine: dbal: orm is set for the client, but there are no connection properties because they are set at runtime and are referenced by all users. Ie I have only one standard dbal connection and two orm connections, and the number of users is unlimited.
This works fine, but I need to create a database and schema when the user is registered (FOS UserBundle). In the advanced userbundle controller, I can put my own logic. The problem is that I cannot run "php app / console doctrine: database: create" because there are no parameters for the new user.
Is there a way to specify a custom database setting for console commands? I could get around this with some very ugly mysql commands, but I would prefer. Thank you very much in advance!
source share