blob: 2c02db416e14bc9362cffe8344153bd7eb011a1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Exception;
use LogicException;
use function sprintf;
final class MissingIdentifierField extends LogicException implements ManagerException
{
public static function fromFieldAndClass(string $fieldName, string $className): self
{
return new self(sprintf(
'The identifier %s is missing for a query of %s',
$fieldName,
$className,
));
}
}
|