Created
June 18, 2014 17:02
-
-
Save tgriesser/c9e6cf0b545a77bd2a9a to your computer and use it in GitHub Desktop.
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 Customer = bookshelf.Model.extend({ | |
account: function() { | |
return this.belongsTo(Account); | |
}, | |
}); | |
Customer.forge({id: 1}).fetch().then(function(customer) { | |
console.log(customer.toJSON()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment