summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyCollection.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyCollection.php')
-rw-r--r--vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyCollection.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyCollection.php b/vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyCollection.php
new file mode 100644
index 0000000..7ecb4fe
--- /dev/null
+++ b/vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyCollection.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Cache\Exception;
6
7use function sprintf;
8
9class CannotUpdateReadOnlyCollection extends CacheException
10{
11 public static function fromEntityAndField(string $sourceEntity, string $fieldName): self
12 {
13 return new self(sprintf(
14 'Cannot update a readonly collection "%s#%s"',
15 $sourceEntity,
16 $fieldName,
17 ));
18 }
19}