[Flow] Multi client application

Mathis Hoffmann mathis at hoffpost.de
Tue Aug 27 14:16:20 CEST 2013


Hello,

I have written an application that I would like use in a way that 
multiple clients share the same Flow installation. So every client 
should have a seperate database. When a user logs in he should then, in 
addition to username/password enter a client id and based on that client 
id Flow should select the correct database. Are there any approches to 
reach that goal? Other related questions are: How to migrate all 
databases on an application update? How to seperate resources that are 
uploaded by the clients?

Maybe someone has already a good idea or maybe does already have an 
implementation for that?!

My first idea was to write an aspect that intercepts the doctrine 
initialization and overwrites the configured database before doctrine 
creates the persistence manager. But from my point of view that looks a 
bit hacky and I'd be glad to find a clean solution.

Cheers - and thanks in advance for your ideas!
Mathis


More information about the Flow mailing list