[PR #268] Add support for paginating WHERE NOT ... queries #7949

Closed
opened 2026-01-22 15:57:41 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/268

State: closed
Merged: Yes


The Pagination tool throws an exception on a DQL query like:

SELECT u FROM User u WHERE NOT (u INSTANCE OF Person)

This is because Paginate does not know about the
Doctrine\ORM\Query\AST\ConditionalFactor which implements the NOT
operator. This patch adds support for that.

Ported from beberlei/DoctrineExtentions as requested by @beberlei in PR#52

**Original Pull Request:** https://github.com/doctrine/orm/pull/268 **State:** closed **Merged:** Yes --- The Pagination tool throws an exception on a DQL query like: SELECT u FROM User u WHERE NOT (u INSTANCE OF Person) This is because Paginate does not know about the Doctrine\ORM\Query\AST\ConditionalFactor which implements the NOT operator. This patch adds support for that. Ported from beberlei/DoctrineExtentions as requested by @beberlei in PR#52
admin added the pull-request label 2026-01-22 15:57:41 +01:00
admin closed this issue 2026-01-22 15:57:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7949