diff --git a/src/Service/GenericData/V1/Hydrator/Asset/DocumentHydrator.php b/src/Service/GenericData/V1/Hydrator/Asset/DocumentHydrator.php index 09a7367b6..ac31e2974 100644 --- a/src/Service/GenericData/V1/Hydrator/Asset/DocumentHydrator.php +++ b/src/Service/GenericData/V1/Hydrator/Asset/DocumentHydrator.php @@ -56,5 +56,7 @@ public function hydrate(DocumentItem $item): Document $document->setFullPath($item->getFullPath()); $document->setPageCount($item->getPageCount()); + + return $document; } }