Class: SC.ChildAttribute


Extends SC.RecordAttribute.

ChildAttribute is a subclass of RecordAttribute and handles to-one 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 ManyAttribute:

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

Defined in: child_attribute.js

Since:
SproutCore 1.0

Field Summary

Instance Methods

Instance Method Detail

call(record, key, value)
The core handler. Called from the property.
Parameters:
record SC.Record
the record instance
key String
the key used to access this attribute on the record
value Object
the property value if called as a setter
Returns:
Object
property value
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)