Closed agonbina closed 9 years ago
In the last example with the 'through' option, I believe there is an error here:
var user = User.create({id: 3}); var group = Group.create({id: 6}); var membership = Membership.create({user_id: 3, group_id: 6}); membership.user() === user; // true **HERE**membership.group() === user; // true
I'm assuming the intention was to compare membership.group() with the group instance, ie
membership.group() === group;
In the last example with the 'through' option, I believe there is an error here:
I'm assuming the intention was to compare membership.group() with the group instance, ie