Skip to content

Related models are updated on Update() even if no related columns are specified #233

Open
@nadiamoe

Description

@nadiamoe

If a model has relations, they will be saved after calling parentStore.Update(parent, Schema.Parent.PlainString), even if their FKs are not included in the cols... list.

This behaviour is not breaking, but kind of suboptimal. Most of the time you specify which columns must be updated it's because you don't want to touch any other thing.

It can be considered problematic if the user assumes that only the specified fields will be updated.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions