diff options
Diffstat (limited to 'vendor/doctrine/orm/src/TransactionRequiredException.php')
| -rw-r--r-- | vendor/doctrine/orm/src/TransactionRequiredException.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/vendor/doctrine/orm/src/TransactionRequiredException.php b/vendor/doctrine/orm/src/TransactionRequiredException.php deleted file mode 100644 index 6114544..0000000 --- a/vendor/doctrine/orm/src/TransactionRequiredException.php +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 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 | } | ||
