Skip to content

Commit 781b860

Browse files
M3psipaxChristian Meyer
andauthored
docs: fix one-to-many (inverse) - 'userId' should be 'postId' (#82) (#83)
fix #82 Co-authored-by: Christian Meyer <[email protected]>
1 parent 6284661 commit 781b860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/relationships/one-to-many.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Comment extends Model {
6464
id: this.attr(null),
6565
postId: this.attr(null),
6666
body: this.string(''),
67-
post: this.belongsTo(Post, 'userId')
67+
post: this.belongsTo(Post, 'postId')
6868
}
6969
}
7070
}

0 commit comments

Comments
 (0)