Skip to content

Commit

Permalink
docs: correct the comment of OneToMany decorator (#6712)
Browse files Browse the repository at this point in the history
  • Loading branch information
juusaw committed Sep 14, 2020
1 parent 208cf6b commit b50576e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decorator/relations/OneToMany.ts
Expand Up @@ -2,8 +2,8 @@ import {getMetadataArgsStorage, ObjectType, RelationOptions} from "../../";
import {RelationMetadataArgs} from "../../metadata-args/RelationMetadataArgs";

/**
* One-to-many relation allows to create type of relation when Entity2 can have multiple instances of Entity1.
* Entity1 have only one Entity2. Entity1 is an owner of the relationship, and storages Entity2 id on its own side.
* One-to-many relation allows to create type of relation when Entity1 can have multiple instances of Entity2.
* Entity2 have only one Entity1. Entity2 is an owner of the relationship, and storages Entity1 id on its own side.
*/
export function OneToMany<T>(typeFunctionOrTarget: string|((type?: any) => ObjectType<T>), inverseSide: string|((object: T) => any), options?: RelationOptions): PropertyDecorator {
return function (object: Object, propertyName: string) {
Expand Down

0 comments on commit b50576e

Please sign in to comment.