|
@@ -216,6 +216,7 @@ class Driver extends \Qii\Driver\Base implements \Qii\Driver\Intf
|
|
|
* @param $val
|
|
|
*/
|
|
|
public function setAttribute($key, $val){
|
|
|
+ $this->db['CURRENT'] = $this->connection->getWriteConnection();
|
|
|
$this->db['CURRENT']->setAttribute($key, $val);
|
|
|
}
|
|
|
/**
|
|
@@ -223,6 +224,7 @@ class Driver extends \Qii\Driver\Base implements \Qii\Driver\Intf
|
|
|
*/
|
|
|
public function transaction()
|
|
|
{
|
|
|
+ $this->db['CURRENT'] = $this->connection->getWriteConnection();
|
|
|
return $this->db['CURRENT']->beginTransaction();
|
|
|
}
|
|
|
|