I\'m trying to change the database connection used in cakephp 3 on the fly. Every answer to this question that I found refers to cakephp 2 (The
Configuring table connections
namespace App\Model\Table; use Cake\ORM\Table; class ArticlesTable extends Table { public static function defaultConnectionName() { return 'replica_db'; } }