Skip to content

Invalid object ID #27

Closed
Closed
@rapocalypse

Description

@rapocalypse

Don't know if it's a real issue or a feature needed, but there's some way to not throw an exception when a search doesn't find a object with the specified _id ?

Perhaps act like the mysql, returning an empty value if there isn't a object with the selected _id…

I'm doing this: MongoModel::where('_id',$data['_id'])->first();

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