summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Persisters/MatchingAssociationFieldRequiresObject.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Persisters/MatchingAssociationFieldRequiresObject.php')
-rw-r--r--vendor/doctrine/orm/src/Persisters/MatchingAssociationFieldRequiresObject.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/doctrine/orm/src/Persisters/MatchingAssociationFieldRequiresObject.php b/vendor/doctrine/orm/src/Persisters/MatchingAssociationFieldRequiresObject.php
deleted file mode 100644
index 4e7251e..0000000
--- a/vendor/doctrine/orm/src/Persisters/MatchingAssociationFieldRequiresObject.php
+++ /dev/null
@@ -1,22 +0,0 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Persisters;
6
7use Doctrine\ORM\Exception\PersisterException;
8
9use function sprintf;
10
11final class MatchingAssociationFieldRequiresObject extends PersisterException
12{
13 public static function fromClassAndAssociation(string $class, string $associationName): self
14 {
15 return new self(sprintf(
16 'Cannot match on %s::%s with a non-object value. Matching objects by id is ' .
17 'not compatible with matching on an in-memory collection, which compares objects by reference.',
18 $class,
19 $associationName,
20 ));
21 }
22}