Skip to content

Commit 9e45f42

Browse files
committed
test fix
1 parent 79fca6f commit 9e45f42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Doctrine/DoctrineHelper.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ public function getMetadata(string $classOrNamespace = null, bool $disconnected
133133
if ($disconnected) {
134134
try {
135135
$loaded = $cmf->getAllMetadata();
136-
} catch (PersistenceMappingException | ORMMappingException $e) {
136+
} catch (\Throwable $e) {
137+
if (!$e instanceof ORMMappingException && !$e instanceof PersistenceMappingException) {
138+
throw $e;
139+
}
137140
$loaded = $cmf instanceof AbstractClassMetadataFactory ? $cmf->getLoadedMetadata() : [];
138141
}
139142

0 commit comments

Comments
 (0)