Skip to content

Commit f20fe7b

Browse files
committed
ORMException moved to another namespace
1 parent c73dc10 commit f20fe7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Type/Doctrine/CreateQueryDynamicReturnTypeExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function getTypeFromMethodCall(
8888
try {
8989
$query = $em->createQuery($queryString);
9090
QueryResultTypeWalker::walk($query, $typeBuilder, $this->descriptorRegistry);
91-
} catch (ORMException | DBALException | NewDBALException | CommonException | MappingException $e) {
91+
} catch (ORMException | DBALException | NewDBALException | CommonException | MappingException | \Doctrine\ORM\Exception\ORMException $e) {
9292
return new QueryType($queryString, null, null);
9393
} catch (AssertionError $e) {
9494
return new QueryType($queryString, null, null);

src/Type/Doctrine/QueryBuilder/QueryBuilderGetQueryDynamicReturnTypeExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private function getQueryType(string $dql): Type
196196
try {
197197
$query = $em->createQuery($dql);
198198
QueryResultTypeWalker::walk($query, $typeBuilder, $this->descriptorRegistry);
199-
} catch (ORMException | DBALException | CommonException | MappingException $e) {
199+
} catch (ORMException | DBALException | CommonException | MappingException | \Doctrine\ORM\Exception\ORMException $e) {
200200
return new QueryType($dql, null);
201201
} catch (AssertionError $e) {
202202
return new QueryType($dql, null);

0 commit comments

Comments
 (0)