Fixed deprecations

This commit is contained in:
Jan Böhmer 2023-12-05 21:55:20 +01:00
parent 5faeb5dd56
commit 8b8079a6f1
3 changed files with 4 additions and 4 deletions

View file

@ -127,7 +127,7 @@ class TreeViewGenerator
}
if ($href_type !== '' && null !== $item->getId()) {
$entity = $this->em->getPartialReference($class, $item->getId());
$entity = $this->em->find($class, $item->getId());
$item->setHref($this->urlGenerator->getURL($entity, $href_type));
}