diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyEntity.php')
| -rw-r--r-- | vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyEntity.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyEntity.php b/vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyEntity.php new file mode 100644 index 0000000..b945514 --- /dev/null +++ b/vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyEntity.php | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Cache\Exception; | ||
| 6 | |||
| 7 | use function sprintf; | ||
| 8 | |||
| 9 | class CannotUpdateReadOnlyEntity extends CacheException | ||
| 10 | { | ||
| 11 | public static function fromEntity(string $entityName): self | ||
| 12 | { | ||
| 13 | return new self(sprintf('Cannot update a readonly entity "%s"', $entityName)); | ||
| 14 | } | ||
| 15 | } | ||
