diff options
Diffstat (limited to 'vendor/doctrine/orm/src/TransactionRequiredException.php')
-rw-r--r-- | vendor/doctrine/orm/src/TransactionRequiredException.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/TransactionRequiredException.php b/vendor/doctrine/orm/src/TransactionRequiredException.php new file mode 100644 index 0000000..6114544 --- /dev/null +++ b/vendor/doctrine/orm/src/TransactionRequiredException.php | |||
@@ -0,0 +1,21 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM; | ||
6 | |||
7 | use Doctrine\ORM\Exception\ORMException; | ||
8 | use LogicException; | ||
9 | |||
10 | /** | ||
11 | * Is thrown when a transaction is required for the current operation, but there is none open. | ||
12 | * | ||
13 | * @link www.doctrine-project.com | ||
14 | */ | ||
15 | class TransactionRequiredException extends LogicException implements ORMException | ||
16 | { | ||
17 | public static function transactionRequired(): self | ||
18 | { | ||
19 | return new self('An open transaction is required for this operation.'); | ||
20 | } | ||
21 | } | ||