Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 25, 2023
1 parent 6c4910d commit 2003479
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Type/Doctrine/ObjectMetadataResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ public function getClassMetadata(string $className): ?ClassMetadataInfo
return null;
}

/** @throws \Doctrine\Persistence\Mapping\MappingException | MappingException | AnnotationException */
$metadata = $metadataFactory->getMetadataFor($className);
} else {
/** @throws \Doctrine\Persistence\Mapping\MappingException | MappingException | AnnotationException */
$metadata = $objectManager->getClassMetadata($className);
}
} catch (\Doctrine\Persistence\Mapping\MappingException | MappingException | AnnotationException $e) {
Expand Down

0 comments on commit 2003479

Please sign in to comment.