You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I added topping: DS.hasMany('topping', {async: true}) in app/models/item.js I started getting the following error:
Error while processing route: menu Assertion Failed: Ember Data expected a number or string to represent the record(s) in the `topping` relationship instead it found an object. If this is a polymorphic relationship please specify a `type` key. If this is an embedded relationship please include the `DS.EmbeddedRecordsMixin` and specify the `topping` property in your serializer's attrs object.
I do not know what type I need to specify and where to do it.
Could you help me to correct this error?
I use:
ember 1.13.7
ember-data 1.13.8
ember-parse-adapter 0.5.3
The text was updated successfully, but these errors were encountered:
In the database on the parse.com I have a table
Item
with the following fields:Topping has a field
title
andprice
.For this database I have the following models:
app/models/item.js:
app/models/topping.js:
When I added
topping: DS.hasMany('topping', {async: true})
inapp/models/item.js
I started getting the following error:I do not know what type I need to specify and where to do it.
Could you help me to correct this error?
I use:
The text was updated successfully, but these errors were encountered: