Skip to content

new models with default values cannot be tracked properly #60

@feanor07

Description

@feanor07

As far as I see; new models always return true for didChange attr/relation after the following commit fe3a1a3#diff-d1f63f06d3656a6e2da38e3a5fee9865R406

I need to start tracking of a newly created model after setting some default attributes on it; but calling model.startTrack() (I am not using auto mode) has no effect due to the above commit I mentioned. I cannot find anyways to start tracking of a new model after setting some initial values on it; so that modelChanges() do not return the properties with those initial values if they are unchanged. Is there anyway I can achieve what I want? I am open to any suggestion. thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions