1
0
mirror of synced 2024-12-14 07:06:04 +03:00

[2.0] Fixed issue with classmetadata cache that was saving the entire inheritance on the same cacheKey.

This commit is contained in:
guilhermeblanco 2010-03-03 14:38:39 +00:00
parent b6cbcb855b
commit dc1f61c0e3

View File

@ -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 {