Files
LaLiga-BackEnd/vendor/doctrine/orm/src/Cache/Exception/CannotUpdateReadOnlyEntity.php
T
2024-05-18 02:28:01 +02:00

16 lines
320 B
PHP

<?php
declare(strict_types=1);
namespace Doctrine\ORM\Cache\Exception;
use function sprintf;
class CannotUpdateReadOnlyEntity extends CacheException
{
public static function fromEntity(string $entityName): self
{
return new self(sprintf('Cannot update a readonly entity "%s"', $entityName));
}
}