My app requires me to use 2 databases. Most models use data from only one model but some models require me to use a different database.
Is it possible to specify in a model which database to use? I am using MongoDB for my database.
My app requires me to use 2 databases. Most models use data from only
Share
The Lithium docs explain multiple connections, in the section “Model Creation and Configuration”
From that page, if you want to use the “backup” connection:
Further explanation from the same page: