From 3e0451674070ec5c487d1969feb0da7800f0fdd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 15 Apr 2023 13:06:57 +0200 Subject: [PATCH] Remove wrong comparison This is a remnant of when this was done with the type and the & operator. --- lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php b/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php index 870a6da3c8b..fba5c25e0c1 100644 --- a/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php +++ b/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php @@ -1193,7 +1193,7 @@ protected function getSelectColumnsSQL(): string continue; } - if (($assoc->isToMany() > 0) && $this->currentPersisterContext->handlesLimits) { + if ($assoc->isToMany() && $this->currentPersisterContext->handlesLimits) { continue; }