Skip to content

Commit

Permalink
Transfer driverName to parent class
Browse files Browse the repository at this point in the history
Transfer driverName to parent class (yii.db.Connection) cause its private field.
  • Loading branch information
arkhamvm authored Jul 27, 2018
1 parent 72642bb commit 6444943
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ class Connection extends \yii\db\Connection
*/
private $_configuration;

/**
* @inheritdoc
*/
public function init()
{
$this->setDriverName($this->driverName);

parent::init();
}

/**
* @inheritdoc
*/
Expand Down Expand Up @@ -149,4 +159,4 @@ public function transaction(callable $callback, $isolationLevel = null)
throw new NotSupportedException('In the clickhouse database, transactions are not supported');
}

}
}

0 comments on commit 6444943

Please sign in to comment.