summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Cache/Exception/FeatureNotImplemented.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/Exception/FeatureNotImplemented.php')
-rw-r--r--vendor/doctrine/orm/src/Cache/Exception/FeatureNotImplemented.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Cache/Exception/FeatureNotImplemented.php b/vendor/doctrine/orm/src/Cache/Exception/FeatureNotImplemented.php
new file mode 100644
index 0000000..8767d57
--- /dev/null
+++ b/vendor/doctrine/orm/src/Cache/Exception/FeatureNotImplemented.php
@@ -0,0 +1,23 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Cache\Exception;
6
7class FeatureNotImplemented extends CacheException
8{
9 public static function scalarResults(): self
10 {
11 return new self('Second level cache does not support scalar results.');
12 }
13
14 public static function multipleRootEntities(): self
15 {
16 return new self('Second level cache does not support multiple root entities.');
17 }
18
19 public static function nonSelectStatements(): self
20 {
21 return new self('Second-level cache query supports only select statements.');
22 }
23}