Ember-data 1.0.0-beta.19: store.find () returns instances of DS.INTERNALMODEL

I have Ember-data data up to 1.0.0-beta.19 and now store.find('events') promise is resolved returns DS.INTERNALMODEL instances instead of DS.MODEL . With Ember-data 1.0.0-beta.18, it worked fine. Any ideas?

UPDATE

In the end, I found out that somewhere in my application code I used the Ember-data internal code, for example store.find('events.content') , store.find('events.content') exception. The debugger was not so useful in tracking it, but fixing this fixed issue.

+5
source share
2 answers

This is an error if the promise is resolved using DS.InternalModel, it is only for internal use of Ember-Data and should not be affected by user code. Please write an error if this is still a problem.

+2
source

This is special. This is noted in chanelog:

  • # 3094 Lazy materialize DS.Models for application code, use InternalModel inside ED otherwise

It should work mostly without problems. Do you have a problem with this?

You can access DS.Model using InternalModel.record

0
source

All Articles