Different DATABASE connections for different plugins?


#1

I have build a few plugins in Cakephp 3. I started with the same base code then split into different technologies, 1 plugin is a wordpress type site which can handle all types of posts in the cms to the front end, the 2nd is a event booking system for a hotel etc - if someone is interested.
My question is can Cakephp 3 handle different database connections in different plugins? If so I can split or have these plugins available which I can switch on/off and each plugin connects to it’s won database without the tables having to sit on one database which will get very quickly very big. The closest I got to this is naming the database at the top of the model, but then for some reason the site is struggling with it’s database connections to other tables like have many, have one, and so on.
Thanks