Use the getReference function in TimeTravel service instead of the removed getPartialReference()

This is probably the better choice anyway
This commit is contained in:
Jan Böhmer 2024-06-09 23:58:03 +02:00
parent bd640c19a4
commit afb816cc41

View file

@ -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);
}
}