Skip to content

MongoDB\Driver\Exception\BulkWriteException: Updating the path 'my_collection.updated_at' would create a conflict at 'my_collection' #1720

Closed
@rennokki

Description

@rennokki
MongoDB\Driver\Exception\BulkWriteException: Updating the path 'my_collection.updated_at' would create a conflict at 'my_collection'

This happens in my unit tests after i upgraded to 3.5. This can be simply reproduced:

$model = MyCollectionModel::first();

$model->update($model->toArray());

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