Created
May 13, 2013 18:27
-
-
Save arenoir/5570334 to your computer and use it in GitHub Desktop.
multiple has_many
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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