mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: one-to-one relation explanation fix (#11151)
This commit is contained in:
parent
6fe7afa747
commit
36476bf793
@ -6,7 +6,7 @@ import { ObjectUtils } from "../../util/ObjectUtils"
|
||||
|
||||
/**
|
||||
* One-to-one relation allows to create direct relation between two entities. Entity1 have only one Entity2.
|
||||
* Entity1 is an owner of the relationship, and storages Entity1 id on its own side.
|
||||
* Entity1 is an owner of the relationship, and storages Entity2 id on its own side.
|
||||
*/
|
||||
export function OneToOne<T>(
|
||||
typeFunctionOrTarget: string | ((type?: any) => ObjectType<T>),
|
||||
@ -15,7 +15,7 @@ export function OneToOne<T>(
|
||||
|
||||
/**
|
||||
* One-to-one relation allows to create direct relation between two entities. Entity1 have only one Entity2.
|
||||
* Entity1 is an owner of the relationship, and storages Entity1 id on its own side.
|
||||
* Entity1 is an owner of the relationship, and storages Entity2 id on its own side.
|
||||
*/
|
||||
export function OneToOne<T>(
|
||||
typeFunctionOrTarget: string | ((type?: any) => ObjectType<T>),
|
||||
@ -25,7 +25,7 @@ export function OneToOne<T>(
|
||||
|
||||
/**
|
||||
* One-to-one relation allows to create direct relation between two entities. Entity1 have only one Entity2.
|
||||
* Entity1 is an owner of the relationship, and storages Entity1 id on its own side.
|
||||
* Entity1 is an owner of the relationship, and storages Entity2 id on its own side.
|
||||
*/
|
||||
export function OneToOne<T>(
|
||||
typeFunctionOrTarget: string | ((type?: any) => ObjectType<T>),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user