Browse Source

Fixes test break.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
49081f0566
  1. 4
      framework/yii/db/Schema.php

4
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;

Loading…
Cancel
Save