diff --git a/Neos.Media/Classes/Domain/Repository/AssetRepository.php b/Neos.Media/Classes/Domain/Repository/AssetRepository.php index 7489ef11d60..4ec41c0037b 100644 --- a/Neos.Media/Classes/Domain/Repository/AssetRepository.php +++ b/Neos.Media/Classes/Domain/Repository/AssetRepository.php @@ -283,6 +283,10 @@ protected function addAssetVariantToQueryConstraints(QueryInterface $query): voi $variantsConstraints = []; $variantClassNames = $this->reflectionService->getAllImplementationClassNamesForInterface(AssetVariantInterface::class); foreach ($variantClassNames as $variantClassName) { + if (!$this->reflectionService->isClassAnnotatedWith($variantClassName, Flow\Entity::class)) { + // ignore non-entity classes to prevent "class schema found" error + continue; + } $variantsConstraints[] = 'e NOT INSTANCE OF ' . $variantClassName; }