diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/Exception/FeatureNotImplemented.php')
-rw-r--r-- | vendor/doctrine/orm/src/Cache/Exception/FeatureNotImplemented.php | 23 |
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 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Cache\Exception; | ||
6 | |||
7 | class 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 | } | ||