mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 06:40:59 +08:00
Fixes #14434: fixed metadata cache regression
This commit is contained in:

committed by
Alexander Makarov

parent
445019779f
commit
fe607b83d2
@ -656,8 +656,8 @@ abstract class Schema extends Object
|
|||||||
}
|
}
|
||||||
if (!array_key_exists($type, $this->_tableMetadata[$name])) {
|
if (!array_key_exists($type, $this->_tableMetadata[$name])) {
|
||||||
$this->_tableMetadata[$name][$type] = $this->{'loadTable' . ucfirst($type)}($this->getRawTableName($name));
|
$this->_tableMetadata[$name][$type] = $this->{'loadTable' . ucfirst($type)}($this->getRawTableName($name));
|
||||||
|
$this->saveTableMetadataToCache($cache, $name);
|
||||||
}
|
}
|
||||||
$this->saveTableMetadataToCache($cache, $name);
|
|
||||||
return $this->_tableMetadata[$name][$type];
|
return $this->_tableMetadata[$name][$type];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user