mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Fix bracket
This commit is contained in:
@ -395,7 +395,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
|
|||||||
// https://github.com/yiisoft/yii2/issues/13749#issuecomment-481657224
|
// https://github.com/yiisoft/yii2/issues/13749#issuecomment-481657224
|
||||||
$key = [__METHOD__, $this->db->dsn];
|
$key = [__METHOD__, $this->db->dsn];
|
||||||
$cache = null;
|
$cache = null;
|
||||||
$schemaCache = (\Yii::$app && is_string($this->db->schemaCache) ? \Yii::$app->get($this->db->schemaCache, false)) : $this->db->schemaCache;
|
$schemaCache = (\Yii::$app && is_string($this->db->schemaCache)) ? \Yii::$app->get($this->db->schemaCache, false) : $this->db->schemaCache;
|
||||||
if ($this->db->enableSchemaCache && $schemaCache instanceof CacheInterface) {
|
if ($this->db->enableSchemaCache && $schemaCache instanceof CacheInterface) {
|
||||||
$cache = $schemaCache;
|
$cache = $schemaCache;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user