From 644494305be73a199cd9e9d097e07196af2d5b24 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Fri, 27 Jul 2018 13:52:49 +1000 Subject: [PATCH] Transfer driverName to parent class Transfer driverName to parent class (yii.db.Connection) cause its private field. --- Connection.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Connection.php b/Connection.php index 83aedfe..c441233 100644 --- a/Connection.php +++ b/Connection.php @@ -42,6 +42,16 @@ class Connection extends \yii\db\Connection */ private $_configuration; + /** + * @inheritdoc + */ + public function init() + { + $this->setDriverName($this->driverName); + + parent::init(); + } + /** * @inheritdoc */ @@ -149,4 +159,4 @@ public function transaction(callable $callback, $isolationLevel = null) throw new NotSupportedException('In the clickhouse database, transactions are not supported'); } -} \ No newline at end of file +}