Skip to content

Commit c501503

Browse files
VincentLangletondrejmirtes
authored andcommitted
Add back noResultException
1 parent e4678fa commit c501503

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

extension.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ parameters:
4141
- stubs/ORM/Mapping/ClassMetadata.stub
4242
- stubs/ORM/Mapping/ClassMetadataInfo.stub
4343
- stubs/ORM/NonUniqueResultException.stub
44+
- stubs/ORM/NoResultException.stub
4445
- stubs/ORM/ORMException.stub
4546
- stubs/ORM/UnexpectedResultException.stub
4647
- stubs/ORM/Query/Expr.stub

stubs/ORM/AbstractQuery.stub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ abstract class AbstractQuery
2424
/**
2525
* @return bool|float|int|string|null
2626
*
27+
* @throws NoResultException
2728
* @throws NonUniqueResultException
2829
*/
2930
public function getSingleScalarResult();

stubs/ORM/NoResultException.stub

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Doctrine\ORM;
4+
5+
class NoResultException extends UnexpectedResultException
6+
{
7+
}

0 commit comments

Comments
 (0)