Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/zh-CN/api/database/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ const AuthorsRepo = db.getRepository('authors');
const author1 = AuthorsRepo.create({ name: 'author1' });

const PostsRepo = db.getRepository('authors.posts', author1.id);
const post1 = AuthorsRepo.create({ title: 'post1' });
const post1 = PostsRepo.create({ title: 'post1' });
asset(post1.authorId === author1.id); // true
```

Expand Down