Commit dc1f61c0 authored by guilhermeblanco's avatar guilhermeblanco

[2.0] Fixed issue with classmetadata cache that was saving the entire...

[2.0] Fixed issue with classmetadata cache that was saving the entire inheritance on the same cacheKey.
parent b6cbcb85
......@@ -149,7 +149,9 @@ class ClassMetadataFactory
$this->_loadedMetadata[$realClassName] = $cached;
} else {
foreach ($this->_loadMetadata($realClassName) as $loadedClassName) {
$this->_cacheDriver->save($cacheKey, $this->_loadedMetadata[$realClassName], null);
$this->_cacheDriver->save(
"$loadedClassName\$CLASSMETADATA", $this->_loadedMetadata[$realClassName], null
);
}
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment