prantlf/backbone.composite-model

View on GitHub
docs/slave-model.nomnoml

Summary

Maintainability
Test Coverage
#direction: right
#padding: 12

[MasterModel|
  +attributes: object literal|
  +slave: SlaveModel
]

[SlaveModel|
  +attributes: object literal
]

[SlaveModel] -- [<note>slave attributes: {
  id: 2,
  ...
}]

[MasterModel] +-> 1 [SlaveModel]

[MasterModel] -- [<note>master attributes: {
  id: 1,
  slave: {id: 2, ...},
  ...
}]