We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1194448 commit 66acec8Copy full SHA for 66acec8
docs/one-to-one-relations.md
@@ -44,7 +44,7 @@ export class User {
44
}
45
```
46
47
-Here we added `@OneToOne` to the `profile` and specify the target relation type to be `Profile`.
+Here we added `@OneToOne` to the `user` and specify the target relation type to be `Profile`.
48
We also added `@JoinColumn` which is required and must be set only on one side of the relation.
49
The side you set `@JoinColumn` on, that side's table will contain a "relation id" and foreign keys to target entity table.
50
0 commit comments