I'm starting my first project with Symfony.
I'm trying to figure if what I want/need is feasible.
I use Doctrine ORM with 2 entity manager, one for the app itself with MySQL database and one for the users data that are SQLite databases.
I want that when someone access something like this : http://example.com/user1/show
the apps retrieve the name of the database for user1
and change the entity manager database path and name to the user's database (previously uploaded).
I need a direction where and what to check/read about how to make this possible (if it is) or any example.
Maybe my approach need to be changed too. Any input will be appreciate.