DDC-2129: [GH-508] Fix and test for DDC-2073 #2682

Closed
opened 2026-01-22 14:00:22 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 6, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of mnapoli:

Url: https://github.com/doctrine/doctrine2/pull/508

Message:

Fix and test for [DDC-2073](http://www.doctrine-project.org/jira/browse/[DDC-2073]%28http://www.doctrine-project.org/jira/browse/DDC-2073%29).

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.

Originally created by @doctrinebot on GitHub (Nov 6, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: This issue is created automatically through a Github pull request on behalf of mnapoli: Url: https://github.com/doctrine/doctrine2/pull/508 Message: Fix and test for [[DDC-2073](http://www.doctrine-project.org/jira/browse/DDC-2073)](http://www.doctrine-project.org/jira/browse/[DDC-2073]%28http://www.doctrine-project.org/jira/browse/DDC-2073%29). 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 Bug label 2026-01-22 14:00:22 +01:00
admin closed this issue 2026-01-22 14:00:23 +01:00
Author
Owner

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

Comment created by mnapoli:

Argh this issue should be closed, I apparently failed linking the pull request to DDC-2073

@doctrinebot commented on GitHub (Nov 6, 2012): Comment created by mnapoli: Argh this issue should be closed, I apparently failed linking the pull request to [DDC-2073](http://www.doctrine-project.org/jira/browse/DDC-2073)
Author
Owner

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

Comment created by @beberlei:

A related Github Pull-Request [GH-508] was closed
https://github.com/doctrine/doctrine2/pull/508

@doctrinebot commented on GitHub (Nov 6, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-508] was closed 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"
Author
Owner

@doctrinebot commented on GitHub (Jan 14, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-508] was closed:
https://github.com/doctrine/dbal/pull/508

@doctrinebot commented on GitHub (Jan 14, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-508] was closed: https://github.com/doctrine/dbal/pull/508
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2682