[2.0] Fixed issue with classmetadata cache that was saving the entire inheritance on the same cacheKey.
This commit is contained in:
parent
b6cbcb855b
commit
dc1f61c0e3
1 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,9 @@ class ClassMetadataFactory
|
||||||
$this->_loadedMetadata[$realClassName] = $cached;
|
$this->_loadedMetadata[$realClassName] = $cached;
|
||||||
} else {
|
} else {
|
||||||
foreach ($this->_loadMetadata($realClassName) as $loadedClassName) {
|
foreach ($this->_loadMetadata($realClassName) as $loadedClassName) {
|
||||||
$this->_cacheDriver->save($cacheKey, $this->_loadedMetadata[$realClassName], null);
|
$this->_cacheDriver->save(
|
||||||
|
"$loadedClassName\$CLASSMETADATA", $this->_loadedMetadata[$realClassName], null
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue