blob: 00164720d06555adbb611abee597dd8d6af20aa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Persisters;
use Doctrine\ORM\Exception\ORMException;
use Exception;
use function sprintf;
class PersisterException extends Exception implements ORMException
{
public static function matchingAssocationFieldRequiresObject(string $class, string $associationName): PersisterException
{
return new self(sprintf(
'Cannot match on %s::%s with a non-object value. Matching objects by id is ' .
'not compatible with matching on an in-memory collection, which compares objects by reference.',
$class,
$associationName,
));
}
}
|