| 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 NonCacheableEntityAssociation extends CacheException |
| 7 | { |
| 8 | public static function fromEntityAndField(string $entityName, string $field) : self |
| 9 | { |
| 10 | return new self(sprintf('Entity association field "%s#%s" not configured as part of the second-level cache.', $entityName, $field)); |
| 11 | } |
| 12 | } |
| 13 |