mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #52] [CLOSED] Cannot do findBy lookup by 'field' => null anymore #7639
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/52
Author: @dbtlr
Created: 5/6/2011
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (3)
6d98121This block of code was added in 2.0.4 and removes the ability to perform a findBy(array('field' => NULL)); in order to find all records where that field is null. The commit it was attached to appears to be for a different problem and this appears to have been added in by mistake. This solution not only causes a new problem, but did not solve the original problem. There is an associated unit test that needs to be removed as well.5bbd7c0This was a bad unit test that was verifying that bad logic was TRUE.21e53cfMerge branch 'patch-2' into patch-1📊 Changes
2 files changed (+0 additions, -17 deletions)
View changed files
📝
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(+0 -4)📝
tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php(+0 -13)📄 Description
This block of code was added in 2.0.4 and removes the ability to perform a findBy(array('field' => NULL)); in order to find all records where that field is null. The commit it was attached to appears to be for a different problem and this appears to have been added in by mistake. This solution not only causes a new problem, but did not solve the original problem. There is an associated unit test that needs to be removed as well.
Problem commit:
af5bcc148dThe original commit message: [DDC-1087] Add missing resolution to IS NULL in EntityRepository when passing a null value as a criteria.
This commit did in fact add the code to fix the original problem but then added another block of code to make it just not work at all.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.