Skip to content

Commit 66acec8

Browse files
authored
docs: update one-to-one-relations.md (typeorm#9456)
One to one documentation is referring to the wrong entity
1 parent 1194448 commit 66acec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/one-to-one-relations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class User {
4444
}
4545
```
4646

47-
Here we added `@OneToOne` to the `profile` and specify the target relation type to be `Profile`.
47+
Here we added `@OneToOne` to the `user` and specify the target relation type to be `Profile`.
4848
We also added `@JoinColumn` which is required and must be set only on one side of the relation.
4949
The side you set `@JoinColumn` on, that side's table will contain a "relation id" and foreign keys to target entity table.
5050

0 commit comments

Comments
 (0)