Skip to content

belongsTo tracking not working Ember Data 3.3.2 #58

Description

@loxmys

When i change belongsoTo modelChanges == {}
/test-model

export default DS.Model.extend({
  changeTracker: { only: ['belongs', 'name', 'manyMany'] },
  name: DS.attr('string),
  belong: DS.belongsTo('belong'),
  manyMany: DS.hasMany('many-many')
});

testModel.startTrack();
if i set hasMany
testModel.set('manyMany', [this correct data])
modelChanges {manyMany: true} it ok

testModel.set('belong', this correct data )
modelChanges {}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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