Skip to content

Model::find(NULL) throws an exception #42

Closed
@alexandre-butynski

Description

@alexandre-butynski

The find method doesn't support NULL as parameter. The expected behavior is to return NULL (as Eloquent does).

"error": {
  "type":"ErrorException",
  "message":"Undefined index: value",
  "file":"...\/vendor\/jenssegers\/mongodb\/src\/Jenssegers\/Mongodb\/Builder.php",
  "line":587
}

I don't see a simple patch right now. I just start using your package and I hope help you more later.

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