mirror of
https://github.com/doctrine/orm.git
synced 2026-04-23 22:48:08 +02:00
0a3fbac8af
It will make fuzzy matchers more efficient, and configuration files more readable.
20 lines
421 B
PHP
20 lines
421 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\ORM\Cache\Exception;
|
|
|
|
use function sprintf;
|
|
|
|
class CannotUpdateReadOnlyCollection extends CacheException
|
|
{
|
|
public static function fromEntityAndField(string $sourceEntity, string $fieldName): self
|
|
{
|
|
return new self(sprintf(
|
|
'Cannot update a readonly collection "%s#%s"',
|
|
$sourceEntity,
|
|
$fieldName,
|
|
));
|
|
}
|
|
}
|