ModelLink
Properties
6
Properties
6Class hierarchy
Linked records
Are other records linked to this record?
Is this record linked to another record?
Get the original record this record is linked to.
Get links to this record.
Functions
1
Functions
1Creates a proxy record (using native Proxy) linked to this record (the original). The proxy records shares most
data with the original, except for its id (which is always generated), and ordering fields such as
parentIndex and parentId etc.
Any change to the proxy record will be reflected on the original, and vice versa. A proxy record is not meant to be persisted, only the original record should be persisted. Thus, proxy records are not added to stores change tracking (added, modified and removed records).
Removing the original record removes all proxies.
Creating a proxy record allows a Store to seemingly contain the record multiple times, something that is otherwise not possible. It also allows a record to be used in both a tree store and in a flat store.
Proxy record linked to the original record