docs: improve OneToOne description (#10798)

This commit is contained in:
Pavlo Kolodka 2025-01-05 22:57:02 +02:00 committed by GitHub
parent cf69b64312
commit 9b76ae8fbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>),