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
- Fields borrowed from SC.RecordAttribute:
- aggregate, defaultValue, isEditable, isRecordAttribute, isRequired, key, lazilyInstantiate, type, useIsoDate
- Fields borrowed from SC.Object:
- concatenatedProperties, isDestroyed, isObject, nextProperty, object, property, target, toInvalidate
- Fields borrowed from SC.Observable:
- isObservable
Instance Methods
Instance Method Detail
call(record, key, value)
The core handler. Called from the property.
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)