mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Paginator count error #7500
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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