diff --git a/framework/db/dao/Connection.php b/framework/db/dao/Connection.php index 9159c97..0dfdb53 100644 --- a/framework/db/dao/Connection.php +++ b/framework/db/dao/Connection.php @@ -471,6 +471,11 @@ class Connection extends \yii\base\ApplicationComponent } } + public function getQueryBuilder() + { + return $this->getSchema()->getQueryBuilder(); + } + /** * Returns the query builder for the current DB connection. * @return QueryBuilder the query builder for the current DB connection. diff --git a/tests/unit/data/config.php b/tests/unit/data/config.php index 2473c85..fc15690 100644 --- a/tests/unit/data/config.php +++ b/tests/unit/data/config.php @@ -7,4 +7,4 @@ return array( 'password' => '', 'fixture' => __DIR__ . '/mysql.sql', ), -); \ No newline at end of file +); diff --git a/tests/unit/data/mysql.sql b/tests/unit/data/mysql.sql index c2af862..042277e 100644 --- a/tests/unit/data/mysql.sql +++ b/tests/unit/data/mysql.sql @@ -157,4 +157,4 @@ CREATE TABLE types time TIMESTAMP DEFAULT '2002-01-01', bool_col BOOL NOT NULL, bool_col2 BOOLEAN DEFAULT 1 -) TYPE=INNODB; \ No newline at end of file +) TYPE=INNODB;