diff --git a/Classes/Persistence/Doctrine/Mapping/Driver/FlowAnnotationDriver.php b/Classes/Persistence/Doctrine/Mapping/Driver/FlowAnnotationDriver.php index 7319a70907..b0f1e5d5e0 100644 --- a/Classes/Persistence/Doctrine/Mapping/Driver/FlowAnnotationDriver.php +++ b/Classes/Persistence/Doctrine/Mapping/Driver/FlowAnnotationDriver.php @@ -178,9 +178,13 @@ public function loadMetadataForClass($className, ClassMetadata $metadata) * @var ORM\ClassMetadata $metadata */ - $class = $metadata->getReflectionClass(); - $classSchema = $this->getClassSchema($class->getName()); - $classAnnotations = $this->reader->getClassAnnotations($class); + try { + $class = $metadata->getReflectionClass(); + $classSchema = $this->getClassSchema($class->getName()); + $classAnnotations = $this->reader->getClassAnnotations($class); + } catch (ClassSchemaNotFoundException $exception) { + throw new ORM\MappingException(sprintf('Failure while fetching class schema class "%s": %s', $metadata->getName(), $exception->getMessage()), 1542792708, $exception); + } // Evaluate Entity annotation if (isset($classAnnotations[ORM\MappedSuperclass::class])) {