Skip to content

Instantly share code, notes, and snippets.

@arenoir
Created May 13, 2013 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arenoir/5570334 to your computer and use it in GitHub Desktop.
Save arenoir/5570334 to your computer and use it in GitHub Desktop.
multiple has_many
Fp.Event = DS.Model.extend
user: DS.belongsTo('Fp.User')
job: DS.belongsTo('Fp.Job')
invoice: DS.belongsTo('Fp.Invoice')
completedChecklists: DS.hasMany('Fp.ChecklistItem')
createdChecklists: DS.hasMany('Fp.ChecklistItem')
Fp.ChecklistItem = DS.Model.extend
createdByEvent: DS.belongsTo('Fp.Event')
completedByEvent: DS.belongsTo('Fp.Event')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment