How to use multiple databases dynamically for one model in CakePHP
Ok, my first question was modified so many times that I chose to delete it and reformulate my question. I've made a small test-case project with different model-names to find a proper solution for my problem. Warning : Don't mix the databases up with tables Motivation : I separated the user-data into multiple databases for legal & performance issues. Currently I'm working on a CakePHP project that has multiple User 's and each User has it's own database with multiple tables ( cars is one of the tables ). Now, I need to explain something first: Every User has his own database (not a table, a