lundi 12 mars 2018

EmberJS - Multiple hasMany relationship on same attribute

I have below json and I want to add multiple has many relationship.

{
"Id": "2311"
"package" : [ { "233123"  }, { "1987797" }] 
}

I want something like this in my model.

package : hasMany('package'),
package : hasMany('name'),

How can I use the hasMany relationship on same attribute for 2 models ?




Aucun commentaire:

Enregistrer un commentaire