Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

Latest commit

 

History

History
7 lines (6 loc) · 205 Bytes

File metadata and controls

7 lines (6 loc) · 205 Bytes

HasMany should not set the id on the parent document

User.hasMany('Tweet');
user = new User();
tweet = user.tweets.build();
user.tweets.should.eql([]);
tweet.user.should.eql user._id;