diff --git a/src/Service/GenericData/V1/DataObjectSearchAdapter.php b/src/Service/GenericData/V1/DataObjectSearchAdapter.php index 92a33a9f4..f16718022 100644 --- a/src/Service/GenericData/V1/DataObjectSearchAdapter.php +++ b/src/Service/GenericData/V1/DataObjectSearchAdapter.php @@ -35,13 +35,10 @@ public function __construct( public function searchDataObjects(DataObjectQuery $dataObjectQuery): DataObjectSearchResult { $searchResult = $this->searchService->search($dataObjectQuery->getSearch()); - + $result = []; foreach($searchResult->getIds() as $id) { /** @var Concrete $dataObject */ $dataObject = $this->getDataObjectById($id); - if (!$dataObject) { - continue; - } $result[] = new DataObject($dataObject->getId(), $dataObject->getClassName()); }