tattersoftware / codeigniter4-relations

Entity relationships for CodeIgniter 4
MIT License
87 stars 20 forks source link

How to setup to connect multiple databases? #41

Open georgetseng opened 2 years ago

georgetseng commented 2 years ago

I have more than one databases in a project. It seems Tatter will only go with the default database connection. For those models with different databases, I add the $DBGroup property to its model class, but tables cannot be found - "Error: Table not present in schema".

How do I setup to work with different database models in a project?

Thank you

MGatner commented 2 years ago

This is a known limitation of Tatter\Schemas. Supporting multiple databases is planned work but thus far I'm the only one working on this pair of packages and it is not a need I have so is unlikely to be tackled soon.