File tree Expand file tree Collapse file tree 5 files changed +21
-0
lines changed Expand file tree Collapse file tree 5 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ parameters:
3636 - stubs/Collections/ReadableCollection.stub
3737 - stubs/Collections/Selectable.stub
3838 - stubs/ORM/AbstractQuery.stub
39+ - stubs/ORM/Exception/ORMException.stub
3940 - stubs/ORM/Id/AbstractIdGenerator.stub
4041 - stubs/ORM/Mapping/ClassMetadata.stub
4142 - stubs/ORM/Mapping/ClassMetadataInfo.stub
Original file line number Diff line number Diff line change 22
33namespace Doctrine\ORM;
44
5+ use Doctrine\ORM\Exception\ORMException;
6+
57class EntityManager implements EntityManagerInterface
68{
79
@@ -35,6 +37,8 @@ class EntityManager implements EntityManagerInterface
3537 * @phpstan-param class-string<T> $entityName
3638 * @phpstan-param mixed $id
3739 * @phpstan-return T|null
40+ *
41+ * @throws ORMException
3842 */
3943 public function getReference($entityName, $id);
4044
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ namespace Doctrine\ORM\Decorator;
44
55use Doctrine\ORM\EntityManagerInterface;
66use Doctrine\ORM\EntityRepository;
7+ use Doctrine\ORM\Exception\ORMException;
78
89class EntityManagerDecorator implements EntityManagerInterface
910{
@@ -37,6 +38,8 @@ class EntityManagerDecorator implements EntityManagerInterface
3738 * @phpstan-param class-string<T> $entityName
3839 * @phpstan-param mixed $id
3940 * @phpstan-return T|null
41+ *
42+ * @throws ORMException
4043 */
4144 public function getReference($entityName, $id);
4245
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ namespace Doctrine\ORM;
44
55use Doctrine\Persistence\ObjectManager;
66use Doctrine\Persistence\ObjectRepository;
7+ use Doctrine\ORM\Exception\ORMException;
78use Doctrine\ORM\Mapping\ClassMetadata;
89
910interface EntityManagerInterface extends ObjectManager
@@ -36,6 +37,8 @@ interface EntityManagerInterface extends ObjectManager
3637 * @phpstan-param class-string<T> $entityName
3738 * @phpstan-param mixed $id
3839 * @phpstan-return T|null
40+ *
41+ * @throws ORMException
3942 */
4043 public function getReference($entityName, $id);
4144
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Doctrine\ORM\Exception;
4+
5+ use Doctrine\ORM\ORMException as BaseORMException;
6+
7+ class ORMException extends BaseORMException
8+ {
9+
10+ }
You can’t perform that action at this time.
0 commit comments