CacheException.php
9 months ago
CannotUpdateReadOnlyCollection.php
9 months ago
CannotUpdateReadOnlyEntity.php
9 months ago
FeatureNotImplemented.php
9 months ago
InvalidResultCacheDriver.php
9 months ago
MetadataCacheNotConfigured.php
9 months ago
MetadataCacheUsesNonPersistentCache.php
9 months ago
NonCacheableEntity.php
9 months ago
NonCacheableEntityAssociation.php
9 months ago
QueryCacheNotConfigured.php
9 months ago
QueryCacheUsesNonPersistentCache.php
9 months ago
index.php
9 months ago
NonCacheableEntity.php
13 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Cache\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use function sprintf; |
| 6 | class NonCacheableEntity extends CacheException |
| 7 | { |
| 8 | public static function fromEntity(string $entityName) : self |
| 9 | { |
| 10 | return new self(sprintf('Entity "%s" not configured as part of the second-level cache.', $entityName)); |
| 11 | } |
| 12 | } |
| 13 |