clay/amphora

Amphora Entity Handling

nelsonpecora opened this issue · 1 comments

When saving and rendering components in amphora, entity data that the component references must be saved separately to / merged in from the entity's data store.

On Save (after model.save)

  • the entity should be looked up via a combination of the entity name and the entityKey value
  • fields with synched data should be separated from the component's data and saved to the entity
  • fields without synched data should be saved to the component

On Render (before model.render)

  • the entity should be looked up via a combination of the entity name and the entityKey value
  • synched fields should be merged in from the entity data

Closing because implementation will change once a few more Kiln/Amphora features are completed.