Paginator count error #7500

Open
opened 2026-01-22 15:52:26 +01:00 by admin · 0 comments
Owner

Originally created by @hdumazeau on GitHub (Apr 24, 2025).

Bug Report

Version 3.3.2

There's a problem when I use a Paginator with a query that uses an INSTANCE OF.

I give the INSTANCE OF the result of $this->getEntityManager()->getClassMetadata(MyClass::class)

The problem is with the Paginator::count() function, which returns 0 even though I have elements.

I made a request to retrieve the elements (which works):
...... AND d0_.dtype IN ('my_class')........

Request made to retrieve the count (which does not work):
AND d0_.dtype IN ('App\Entity\MyClass')

The dtype is not resolved correctly in the count request

Originally created by @hdumazeau on GitHub (Apr 24, 2025). ### Bug Report Version 3.3.2 There's a problem when I use a Paginator with a query that uses an INSTANCE OF. I give the INSTANCE OF the result of $this->getEntityManager()->getClassMetadata(MyClass::class) The problem is with the Paginator::count() function, which returns 0 even though I have elements. I made a request to retrieve the elements (which works): ...... AND d0_.dtype IN ('my_class')........ Request made to retrieve the count (which does not work): AND d0_.dtype IN ('App\Entity\MyClass') The dtype is not resolved correctly in the count request
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7500