From 9b76ae8fbf4783ab1835fd283947bfca6642f7c9 Mon Sep 17 00:00:00 2001 From: Pavlo Kolodka Date: Sun, 5 Jan 2025 22:57:02 +0200 Subject: [PATCH] docs: improve OneToOne description (#10798) --- src/decorator/relations/OneToOne.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/decorator/relations/OneToOne.ts b/src/decorator/relations/OneToOne.ts index 9f2c50854..1980039be 100644 --- a/src/decorator/relations/OneToOne.ts +++ b/src/decorator/relations/OneToOne.ts @@ -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( typeFunctionOrTarget: string | ((type?: any) => ObjectType), @@ -14,8 +14,8 @@ export function OneToOne( ): 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( typeFunctionOrTarget: string | ((type?: any) => ObjectType), @@ -24,8 +24,8 @@ export function OneToOne( ): 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( typeFunctionOrTarget: string | ((type?: any) => ObjectType),