CakePHP 3.x: Spread $conn to associated Tables during Eager Load -


well have several databases same tables. being used in way design, separate continent information. need change dynamically connection depends on user server requested.

initially using this:

$conn = connectionmanager::get($server);

$this->connection($conn);

but, of course, change not spread associated tables.

how accomplish this?

here soluction , alternative approach owner of cakephp

https://github.com/cakephp/cakephp/issues/6126


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -