Skip to content

Add incorrect field to model in storage after touching her #27791

@Smolevich

Description

@Smolevich
  • Laravel Version: 5.8.2
  • PHP Version: 7.3.2
  • Database Driver & Version: mongodb

I use library https://github.com/jenssegers/laravel-mongodb and if model was touched by method touch in collection to document will added new field collection_name.updated_at and original field updated_at stay with old value. Broken commit 6484744.

Steps To Reproduce:

Create model, save her, and touch after . Example in tests

public function testTouchingChildModelUpdatesParentsTimestamps()

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