Skip to content

$exists operator results in empty objects #959

Closed
@gepo

Description

@gepo

In 1.0.0-BETA12 operator $exists make strange behavior:

    ->findBy(['catched' => ['$exists' => false]])

returns object with not filled fields, but if I use

    ->findBy(['userId' => 123])

returned objects are correct.
I revert doctrine-odm to 1.0.0-BETA11 and $exists works correctly.

I suppose that it's because of this change: #956

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions