[PR #5653] Fix many-to-many matching ignoring offset/limit #9677

Open
opened 2026-01-22 16:05:04 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: No


When using ->matching on ManyToMany with a criteria having offset and/or the resulting query does not contain LIMIT/OFFSET

$criteria = new Criteria();
$criteria->setFirstResult(10);
$criteria->setMaxResults(5);
$entity->getUsers()->matching($criteria);
**Original Pull Request:** https://github.com/doctrine/orm/pull/5653 **State:** closed **Merged:** No --- When using ->matching on ManyToMany with a criteria having offset and/or the resulting query does not contain LIMIT/OFFSET ``` php $criteria = new Criteria(); $criteria->setFirstResult(10); $criteria->setMaxResults(5); $entity->getUsers()->matching($criteria); ```
admin added the pull-request label 2026-01-22 16:05:04 +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#9677