[PR #508] Fix and test for DDC-2073 #8309

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

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

State: closed
Merged: Yes


Fix and test for DDC-2073.

Ticket extract:

PersistentCollection::matching() always returns empty collection, when passed criteria's expression is created using ExpressionBuilder::isNull()
This happens because expression created by ExpressionBuilder::isNull() is wrongly translated to SQL using '=' operator instead of 'IS NULL'.
If the collection is already loaded, result is as expected.

**Original Pull Request:** https://github.com/doctrine/orm/pull/508 **State:** closed **Merged:** Yes --- Fix and test for [DDC-2073](http://www.doctrine-project.org/jira/browse/DDC-2073). Ticket extract: > PersistentCollection::matching() always returns empty collection, when passed criteria's expression is created using ExpressionBuilder::isNull() > This happens because expression created by ExpressionBuilder::isNull() is wrongly translated to SQL using '=' operator instead of 'IS NULL'. > If the collection is already loaded, result is as expected.
admin added the pull-request label 2026-01-22 15:59:19 +01:00
admin closed this issue 2026-01-22 15:59:19 +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#8309