RelatedRecordsArray

An array that allows for updating store references and relationships

Constructor

new RelatedRecordsArray(record, property, array)

Extends an array to create an enhanced array.

Parameters:
NameTypeDescription
recordobject

the record with the referenced array

propertystring

the property on the record that references the array

arrayArray

the array to extend

Classes

RelatedRecordsArray

Members

add

Adds a record to the array, and updates references in the store, as well as inverse references

remove

Removes a record from the array, and updates references in the store, as well as inverse references

replace

Replaces the internal array of objects with a new one, including inverse relationships