Class: DocumentAssignmentsMixin

XM. DocumentAssignmentsMixin

Use this mixin for setting up document associations.

new DocumentAssignmentsMixin()

Source:

Members

<static> attributeDelegates

A mapping of attributes whose values have been mapped to another property.
Source:

<static> documents

A collection of mixed document assignment models that converges all model relations where the related model prototype `isDocumentAssignment` property is true.
Source:

Methods

<static> bindDocuments(Model)

Iterate through relations on a model looking for `isDocumentAssignment` and bind those relations to a consolidated documents collection. Also adds to a map called `attributeDelegates` that records attributes being mapped to this new alternate property. Should be called in the `initialize` function.
Parameters:
Name Type Description
Model XM.Model
Source: