Created
July 28, 2013 23:18
-
-
Save admc/6100677 to your computer and use it in GitHub Desktop.
Conversations
This file contains hidden or 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
var User = function () { | |
//stuff | |
this.hasMany('Conversations'); | |
this.hasMany('Messages', {through: 'Conversations'}); | |
}; | |
var Conversation = function () { | |
//message things | |
this.hasMany('Users', {through: 'Messages'}); | |
}; | |
var Conversation = function () { | |
//conversation things | |
this.hasMany('Messages'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment