5
votes

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

UPDATE

At the end i found out that somewhere in my app code i was using Ember-data internal code like store.find('events.content'), causing an exception. The debugger was not so helpful tracing it, but removing this fixed my issue.

2

2 Answers

2
votes

This is a bug, if the promise resolves with DS.InternalModel, those are only for internal use of Ember-Data and shouldn't be exposed to user code. Please file a bug if this is still a problem

0
votes

This is on purpose. It's noted in the chanelog:

  • #3094 Lazily materialize DS.Models for app code, use InternalModel inside ED otherwise

It should work largely with no issues. Are you having issues with it?

You can access the DS.Model using InternalModel.record