From e339b7d9f0a2bfe936485682f2a41b80893d6b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Tue, 3 Oct 2023 20:47:37 +0200 Subject: [PATCH] Fixed issue with FixInheritanceMappingMetadataFactory --- src/ApiPlatform/FixInheritanceMappingMetadataFacory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiPlatform/FixInheritanceMappingMetadataFacory.php b/src/ApiPlatform/FixInheritanceMappingMetadataFacory.php index 936a4bc5..c65e57a0 100644 --- a/src/ApiPlatform/FixInheritanceMappingMetadataFacory.php +++ b/src/ApiPlatform/FixInheritanceMappingMetadataFacory.php @@ -51,7 +51,7 @@ class FixInheritanceMappingMetadataFacory implements ResourceMetadataCollectionF { //If we already have a cached value, we can return it if (isset($this->cache[$resourceClass])) { - return $this->cache[$resourceClass]; + return $this->decorated->create($this->cache[$resourceClass]); } //Check if the resourceClass is a single inheritance class, then we can use the parent class to access it