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; }