Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ember-data

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.

like image 950
Akis Avatar asked Oct 31 '22 02:10

Akis


1 Answers

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

like image 103
IgorT Avatar answered Nov 10 '22 09:11

IgorT