docs: one-to-one relation explanation fix (#11151)

This commit is contained in:
Patryk Rajpold 2025-01-05 21:26:05 +01:00 committed by GitHub
parent 6fe7afa747
commit 36476bf793
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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