schangxiang@126.com
2025-09-18 0454641bf40fe81dad66592a3a03e8c3775d2377
1
2
3
4
5
6
import { ObjectType, RelationOptions } from "../../";
/**
 * 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.
 */
export declare function OneToMany<T>(typeFunction: (type?: any) => ObjectType<T>, inverseSide: string | ((object: T) => any), options?: RelationOptions): Function;