DDC-2073: PersistentCollection::matching() always returns empty collection, when passed criteria's expression is created using ExpressionBuilder::isNull() #2612

Closed
opened 2026-01-22 13:58:22 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 12, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user pauci:

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.

Originally created by @doctrinebot on GitHub (Oct 12, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user pauci: 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 Bug label 2026-01-22 13:58:23 +01:00
admin closed this issue 2026-01-22 13:58:24 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 6, 2012):

Comment created by mnapoli:

Pull request: https://github.com/doctrine/doctrine2/pull/508

@doctrinebot commented on GitHub (Nov 6, 2012): Comment created by mnapoli: Pull request: https://github.com/doctrine/doctrine2/pull/508
Author
Owner

@doctrinebot commented on GitHub (Nov 12, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 12, 2012): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2612