Skip to main content
Version: 6.3

OneToMany

Callable

  • OneToMany<Target, Owner>(entity: string | (e?: any) => EntityName<Target>, mappedBy: (string & keyof Target) | (e: Target) => any, options?: Partial<OneToManyOptions<Owner, Target>>): (target: AnyEntity, propertyName: string) => void
  • OneToMany<Target, Owner>(options: OneToManyOptions<Owner, Target>): (target: AnyEntity, propertyName: string) => void

  • Type parameters

    • Target
    • Owner

    Parameters

    • entity: string | (e?: any) => EntityName<Target>
    • mappedBy: (string & keyof Target) | (e: Target) => any
    • optionaloptions: Partial<OneToManyOptions<Owner, Target>>

    Returns (target: AnyEntity, propertyName: string) => void

      • (target: AnyEntity, propertyName: string): void
      • Parameters

        Returns void