Skip to content

update("$push") does not work with Persistable #207

@minenok-tutu

Description

@minenok-tutu

I have document structure similar to that:
class A { /** @var B[] */ private $_b = []; }
Both A and B are persistable. So, when I insert A with multiple Bs via driver, it's OK. I see __pclass field in mongo shell.
When I execute something like (of course, again via php api)
update({"$push": {"b": {new B object}}})
no __pclass field is created and unserialization goes wrong.

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