Make QueryBuilder implement Selectable #7215

Open
opened 2026-01-22 15:47:08 +01:00 by admin · 1 comment
Owner

Originally created by @cbichis on GitHub (Aug 28, 2023).

Hi,

There is any reason for which QueryBuilder does not implement Doctrine\Common\Collections\Selectable?

As obviously we can do:

$qb->addCriteria($criteria);

Where I find this useful? On using the QueryBuilder for Paginator with the Selectable + filtering/ordering: https://www.doctrine-project.org/projects/doctrine-module/en/5.3/paginator.html

Originally created by @cbichis on GitHub (Aug 28, 2023). Hi, There is any reason for which QueryBuilder does not implement Doctrine\Common\Collections\Selectable? As obviously we can do: $qb->addCriteria($criteria); Where I find this useful? On using the QueryBuilder for Paginator with the Selectable + filtering/ordering: https://www.doctrine-project.org/projects/doctrine-module/en/5.3/paginator.html
admin added the Question label 2026-01-22 15:47:08 +01:00
Author
Owner

@derrabus commented on GitHub (Aug 28, 2023):

There is any reason for which QueryBuilder does not implement Doctrine\Common\Collections\Selectable?

It's not a collection?

@derrabus commented on GitHub (Aug 28, 2023): > There is any reason for which QueryBuilder does not implement Doctrine\Common\Collections\Selectable? It's not a collection?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7215