mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Fixed bad instnaceof check in yii\db\Schema::getTableMetadata()
This commit is contained in:
@ -22,6 +22,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #16245: Fixed `__isset()` in `BaseActiveRecord` not catching errors (sammousa)
|
||||
- Enh #16191: Enhanced `yii\helpers\Inflector` to work correctly with UTF-8 (silverfire)
|
||||
|
||||
- Bug: Fixed bad instnaceof check in `yii\db\Schema::getTableMetadata()` (samdark)
|
||||
|
||||
|
||||
2.0.15.1 March 21, 2018
|
||||
|
||||
@ -732,7 +732,7 @@ abstract class Schema extends BaseObject
|
||||
$cache = null;
|
||||
if ($this->db->enableSchemaCache && !in_array($name, $this->db->schemaCacheExclude, true)) {
|
||||
$schemaCache = is_string($this->db->schemaCache) ? Yii::$app->get($this->db->schemaCache, false) : $this->db->schemaCache;
|
||||
if ($schemaCache instanceof Cache) {
|
||||
if ($schemaCache instanceof CacheInterface) {
|
||||
$cache = $schemaCache;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user