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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -