mirror of
https://github.com/doctrine/orm.git
synced 2026-04-23 14:38:03 +02:00
073f2aa891
It will make fuzzy matchers more efficient, and configuration files more readable. - lib/Doctrine/ORM becomes just src - tests/Doctrine/ becomes just tests
20 lines
410 B
PHP
20 lines
410 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\ORM\Cache\Exception;
|
|
|
|
use Doctrine\Common\Cache\Cache;
|
|
|
|
use function get_debug_type;
|
|
|
|
final class QueryCacheUsesNonPersistentCache extends CacheException
|
|
{
|
|
public static function fromDriver(Cache $cache): self
|
|
{
|
|
return new self(
|
|
'Query Cache uses a non-persistent cache driver, ' . get_debug_type($cache) . '.'
|
|
);
|
|
}
|
|
}
|