Skip to content

Commit 1325277

Browse files
committed
MappingDriverChain::isTransient() - catch exceptions too
1 parent 16cb23a commit 1325277

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Doctrine/Mapping/MappingDriverChain.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,15 @@ public function getAllClassNames()
5454
public function isTransient($className)
5555
{
5656
foreach ($this->drivers as $driver) {
57-
if ($driver->isTransient($className)) {
58-
continue;
59-
}
57+
try {
58+
if ($driver->isTransient($className)) {
59+
continue;
60+
}
6061

61-
return false;
62+
return false;
63+
} catch (MappingException | AnnotationException $e) {
64+
// pass
65+
}
6266
}
6367

6468
return true;

0 commit comments

Comments
 (0)