mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: improve OneToOne description (#10798)
This commit is contained in:
parent
cf69b64312
commit
9b76ae8fbf
@ -5,8 +5,8 @@ import { RelationOptions } from "../options/RelationOptions"
|
||||
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 Entity2 id on its own side.
|
||||
* One-to-one relation allows the creation of a direct relation between two entities. Entity1 has only one Entity2.
|
||||
* Entity1 is the owner of the relationship, and stores Entity2 id on its own side.
|
||||
*/
|
||||
export function OneToOne<T>(
|
||||
typeFunctionOrTarget: string | ((type?: any) => ObjectType<T>),
|
||||
@ -14,8 +14,8 @@ export function OneToOne<T>(
|
||||
): PropertyDecorator
|
||||
|
||||
/**
|
||||
* 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 Entity2 id on its own side.
|
||||
* One-to-one relation allows the creation of a direct relation between two entities. Entity1 has only one Entity2.
|
||||
* Entity1 is the owner of the relationship, and stores Entity2 id on its own side.
|
||||
*/
|
||||
export function OneToOne<T>(
|
||||
typeFunctionOrTarget: string | ((type?: any) => ObjectType<T>),
|
||||
@ -24,8 +24,8 @@ export function OneToOne<T>(
|
||||
): PropertyDecorator
|
||||
|
||||
/**
|
||||
* 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 Entity2 id on its own side.
|
||||
* One-to-one relation allows the creation of a direct relation between two entities. Entity1 has only one Entity2.
|
||||
* Entity1 is the owner of the relationship, and stores 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