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
importDSfrom'ember-data'; // NOTE: this is a workaround, see discussion below!
109
+
importCommentfrom'./comment';
110
+
importUserfrom'./user';
111
+
112
+
exportdefaultclassThreadextendsModel {
113
+
@hasMany('comment')
114
+
declare comment:DS.PromiseManyArray<Comment>;
115
+
116
+
@hasMany('user', { async: false })
117
+
declare participants:EmberArray<User>;
118
+
}
119
+
```
93
120
94
121
The same basic rules about the safety of these lookups as with `@belongsTo` apply to these types. The difference is just that in `@hasMany` the resulting types are *arrays* rather than single objects.
0 commit comments