diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php index 8a0bb209a403..5d46849c6f96 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php @@ -657,11 +657,6 @@ protected function mapObjectToClassProperty(DomainObjectInterface $parentObject, return $this->getEmptyRelationValue($parentObject, $propertyName); } - $property = $this->reflectionService->getClassSchema(get_class($parentObject))->getProperty($propertyName); - if ($this->persistenceSession->hasIdentifier((string)$fieldValue, $property->getType())) { - return $this->persistenceSession->getObjectByIdentifier((string)$fieldValue, $property->getType()); - } - $primaryType = $this->reflectionService ->getClassSchema(get_class($parentObject)) ->getProperty($propertyName) diff --git a/typo3/sysext/extbase/Classes/Reflection/ClassSchema/Property.php b/typo3/sysext/extbase/Classes/Reflection/ClassSchema/Property.php index 2a3db2118ec0..a1b1bdc309f1 100644 --- a/typo3/sysext/extbase/Classes/Reflection/ClassSchema/Property.php +++ b/typo3/sysext/extbase/Classes/Reflection/ClassSchema/Property.php @@ -66,21 +66,6 @@ public function getName(): string return $this->name; } - /** - * Returns the type (string, integer, ...) set by the `@var` doc comment and php property type declarations - * - * Returns null if type could not be evaluated - * - * @return non-empty-string|null - * - * @deprecated since v12, will be removed in v13. - */ - public function getType(): ?string - { - $primaryType = $this->getTypes()[0] ?? null; - return $primaryType?->getClassName() ?? $primaryType?->getBuiltinType(); - } - /** * Returns the types (string, integer, ...) set by the `@var` doc comment and php property type declarations *