for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Cache\Exception;
use function sprintf;
use Doctrine\ORM\Cache\CacheException;
class CannotUpdateReadOnlyEntity extends \LogicException implements CacheException
{
public static function fromEntity(string $entityName) : self
return new self(sprintf('Cannot update a readonly entity "%s"', $entityName));
}