Skip to content

'Serialization of 'MongoDB\BSON\ObjectID' is not allowed' #150

@kschroeder

Description

@kschroeder

This is an error that is being the bane of my existence over the past few days. I believe that in the old library the MongoID object could be serialized. Given that it is not an unusual use case (think storing an account document in the session) it would be really nice if this could be made to be serializable. I can work around it, of course, but it feels like an unnecessary (from my end) extra step.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions