diff --git a/framework/yii/db/Schema.php b/framework/yii/db/Schema.php index 2b3a187..fbcec2c 100644 --- a/framework/yii/db/Schema.php +++ b/framework/yii/db/Schema.php @@ -99,7 +99,9 @@ abstract class Schema extends Object if ($refresh || ($table = $cache->get($key)) === false) { $table = $this->loadTableSchema($realName); if ($table !== null) { - $cache->set($key, $table, $db->schemaCacheDuration, new GroupDependency($this->getCacheGroup())); + $cache->set($key, $table, $db->schemaCacheDuration, new GroupDependency([ + 'group' => $this->getCacheGroup(), + ])); } } return $this->_tables[$name] = $table;