Class: SC.ChildrenAttribute


Extends SC.RecordAttribute.

ChildrenAttribute is a subclass of ChildAttribute and handles to-many relationships for child records.

When setting ( .set() ) the value of a toMany attribute, make sure to pass in an array of SC.Record objects.

There are many ways you can configure a ChildrenAttribute:

contacts: SC.ChildrenAttribute.attr('SC.Child');

Defined in: children_attribute.js

Since:
SproutCore 1.0

Field Summary

Instance Methods

Instance Method Detail

fromType(record, key, value)
Parameters:
record
key
value
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:20 GMT-0600 (CST)