mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Use the getReference function in TimeTravel service instead of the removed getPartialReference()
This is probably the better choice anyway
This commit is contained in:
parent
bd640c19a4
commit
afb816cc41
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue