Posts

Showing posts with the label yii

How to configure Doctrine DBAL multidatabase or multiple connections in YII?

Image
Clash Royale CLAN TAG #URR8PPP How to configure Doctrine DBAL multidatabase or multiple connections in YII? I have a two databases, in first database i use sqlanywhere, but I don't know how to get multipleconnection doctrine/DBAL in yii. Please help this is first database with sqlanywhere 'dbmain'=>[ 'class'=>'apicomponentsdoctrineDoctrineDBAL', 'dbalConfig'=>[ 'driver' => 'sqlanywhere', 'host' => '192.168.0.1', 'port' => 36, 'server' => '', 'user' => 'dba', 'password' => '123456' ] ], i want to use mysql connection like this but still get error 'dbsecond'=>[ 'class'=>'apicomponentsdoctrineDoctrineDBAL', 'dbalConfig'=>[ 'driver' => 'mysql', ...