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

Methods borrowed from SC.RecordAttribute:
apply, attr, call, registerTransform, toType, transform, typeClass
Methods borrowed from SC.Object:
activate, awake, deactivate, destroy, emitDesign, encodeDesign, init, instanceOf, invokeLast, invokeLater, invokeNext, invokeOnce, invokeOnceLater, invokeWith, kindOf, mixin, notifyPropertyDidChange, respondsTo, superclass, toString, tryToPerform
Methods borrowed from SC.Observable:
addObserver, addObservesHandler, addProbe, allPropertiesDidChange, automaticallyNotifiesObserversFor, beginPropertyChanges, bind, decrementProperty, destroyObservable, didChangeFor, endPropertyChanges, get, getEach, getPath, hasObserverFor, incrementProperty, initObservable, logProperty, notifyPropertyChange, observersForKey, propertyDidChange, propertyWillChange, registerDependentKey, removeObserver, removeObservesHandler, removeProbe, set, setIfChanged, setPath, setPathIfChanged, toggleProperty, unknownProperty

Instance Method Detail

fromType(record, key, value)
Parameters:
record
key
value
Documentation generated by JsDoc Toolkit 2.4.0 on Tue Feb 03 2015 13:12:19 GMT+0100 (CET)