diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/Exception/NonCacheableEntityAssociation.php')
-rw-r--r-- | vendor/doctrine/orm/src/Cache/Exception/NonCacheableEntityAssociation.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Cache/Exception/NonCacheableEntityAssociation.php b/vendor/doctrine/orm/src/Cache/Exception/NonCacheableEntityAssociation.php new file mode 100644 index 0000000..984286f --- /dev/null +++ b/vendor/doctrine/orm/src/Cache/Exception/NonCacheableEntityAssociation.php | |||
@@ -0,0 +1,19 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Cache\Exception; | ||
6 | |||
7 | use function sprintf; | ||
8 | |||
9 | class NonCacheableEntityAssociation extends CacheException | ||
10 | { | ||
11 | public static function fromEntityAndField(string $entityName, string $field): self | ||
12 | { | ||
13 | return new self(sprintf( | ||
14 | 'Entity association field "%s#%s" not configured as part of the second-level cache.', | ||
15 | $entityName, | ||
16 | $field, | ||
17 | )); | ||
18 | } | ||
19 | } | ||