Skip to content

Commit 671e1c4

Browse files
committed
Updated class metadata cache key
1 parent 7b6ec51 commit 671e1c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mapping/ClassMetadataFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public function getClassMetadata($subject): ClassMetadata
6767
$cache = $this->objectManager
6868
->getConfiguration()
6969
->getMetadataCache();
70-
$cacheKey = s($reflectionClass->getName())
71-
->replaceMatches('#[^a-zA-Z0-9]+#', '_')
70+
$cacheKey = s(sprintf('%s.%s', $this->objectManager->getClient()->getIdentifier(), $reflectionClass->getName()))
71+
->replaceMatches('#[^a-zA-Z0-9_]+#', '_')
7272
->toString();
7373

7474
try {

0 commit comments

Comments
 (0)