From afb816cc41048a9f6a5f08f9f2ece5f3b82db5da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 9 Jun 2024 23:58:03 +0200 Subject: [PATCH] Use the getReference function in TimeTravel service instead of the removed getPartialReference() This is probably the better choice anyway --- src/Services/LogSystem/TimeTravel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/LogSystem/TimeTravel.php b/src/Services/LogSystem/TimeTravel.php index c6669678..1ec742e3 100644 --- a/src/Services/LogSystem/TimeTravel.php +++ b/src/Services/LogSystem/TimeTravel.php @@ -219,7 +219,7 @@ class TimeTravel $target_class = $mapping['targetEntity']; //Try to extract the old ID: if (is_array($data) && isset($data['@id'])) { - $entity = $this->em->getPartialReference($target_class, $data['@id']); + $entity = $this->em->getReference($target_class, $data['@id']); $this->setField($element, $field, $entity); } }