diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php b/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php index dd1d8d8e7..0f4ff19e5 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php @@ -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 {