summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Exception/NotSupported.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
committerpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
commitbf6655a534a6775d30cafa67bd801276bda1d98d (patch)
treec6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/orm/src/Exception/NotSupported.php
parent94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff)
downloadAppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/orm/src/Exception/NotSupported.php')
-rw-r--r--vendor/doctrine/orm/src/Exception/NotSupported.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Exception/NotSupported.php b/vendor/doctrine/orm/src/Exception/NotSupported.php
new file mode 100644
index 0000000..9192f87
--- /dev/null
+++ b/vendor/doctrine/orm/src/Exception/NotSupported.php
@@ -0,0 +1,44 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Exception;
6
7use LogicException;
8
9use function sprintf;
10
11/** @deprecated */
12final class NotSupported extends LogicException implements ORMException
13{
14 public static function create(): self
15 {
16 return new self('This behaviour is (currently) not supported by Doctrine 2');
17 }
18
19 public static function createForDbal3(string $context): self
20 {
21 return new self(sprintf(
22 <<<'EXCEPTION'
23Context: %s
24Problem: Feature was deprecated in doctrine/dbal 2.x and is not supported by installed doctrine/dbal:3.x
25Solution: See the doctrine/deprecations logs for new alternative approaches.
26EXCEPTION
27 ,
28 $context,
29 ));
30 }
31
32 public static function createForPersistence3(string $context): self
33 {
34 return new self(sprintf(
35 <<<'EXCEPTION'
36Context: %s
37Problem: Feature was deprecated in doctrine/persistence 2.x and is not supported by installed doctrine/persistence:3.x
38Solution: See the doctrine/deprecations logs for new alternative approaches.
39EXCEPTION
40 ,
41 $context,
42 ));
43 }
44}