DS.ManyArray

DS.ManyArray Class

Extends: Ember.Object

Uses: Ember.MutableArray

Uses: Ember.Evented

Defined in: addon/-private/system/many-array.js:12

Module: ember-data

A ManyArray is a MutableArray that represents the contents of a has-many relationship.

The ManyArray is instantiated lazily the first time the relationship is requested.

Inverses

Often, the relationships in Ember Data applications will have an inverse. For example, imagine the following models are defined:

app/models/post.js
登录查看完整内容