[DDC-2073] PersistentCollection::matching() always returns empty collection, when passed criteria's expression is created using ExpressionBuilder::isNull() Created: 12/Oct/12  Updated: 12/Nov/12  Resolved: 12/Nov/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: 2.3
Fix Version/s: 2.3.1
Security Level: All

Type: Bug Priority: Blocker
Reporter: Pavol Kirschbaum Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 1
Labels: None


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.

Comment by Matthieu Napoli [ 06/Nov/12 ]

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

Generated at Tue Nov 24 23:22:04 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.