From 9a281f54de2de5128d0c9a2192e8cf8a9d95133e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sun, 19 Nov 2023 21:29:56 +0100 Subject: [PATCH] Remove wrong assertion It is useless in that particular method, and wrong. --- lib/Doctrine/ORM/PersistentCollection.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Doctrine/ORM/PersistentCollection.php b/lib/Doctrine/ORM/PersistentCollection.php index c42807537ef..60cbacb34e2 100644 --- a/lib/Doctrine/ORM/PersistentCollection.php +++ b/lib/Doctrine/ORM/PersistentCollection.php @@ -137,7 +137,6 @@ private function getUnitOfWork(): UnitOfWork */ public function hydrateAdd(mixed $element): void { - assert($this->association !== null); $this->unwrap()->add($element); // If _backRefFieldName is set and its a one-to-many association,