diff --git a/src/Service/GenericData/V1/DataObjectSearchAdapter.php b/src/Service/GenericData/V1/DataObjectSearchAdapter.php index 7b5042f32..92a33a9f4 100644 --- a/src/Service/GenericData/V1/DataObjectSearchAdapter.php +++ b/src/Service/GenericData/V1/DataObjectSearchAdapter.php @@ -21,6 +21,7 @@ use Pimcore\Bundle\StudioApiBundle\Dto\DataObject; use Pimcore\Bundle\StudioApiBundle\Service\DataObjectSearchResult; use Pimcore\Bundle\StudioApiBundle\Service\GenericData\DataObjectSearchAdapterInterface; +use Pimcore\Model\DataObject\Concrete; use Pimcore\Model\Element\ElementInterface; final readonly class DataObjectSearchAdapter implements DataObjectSearchAdapterInterface @@ -36,6 +37,7 @@ public function searchDataObjects(DataObjectQuery $dataObjectQuery): DataObjectS $searchResult = $this->searchService->search($dataObjectQuery->getSearch()); foreach($searchResult->getIds() as $id) { + /** @var Concrete $dataObject */ $dataObject = $this->getDataObjectById($id); if (!$dataObject) { continue;