Change database in Resource model
-
14-04-2021 - |
Frage
I split my database on 3 parts. In my env php is set default, but in one of my model i need to connect to table wich located in different db. How can i change target db?
Lösung
i think this docs is what you need.
https://devdocs.magento.com/guides/v2.4/config-guide/multi-master/multi-master_masterdb.html
of course you have to make an adjustment to your needs
Cheers
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange