开发教程API 文档常见问题Version: 6.4- OneToOne(entity?: string | OneToOneOptions<Owner, Target> | (e: Owner) => EntityName<Target>, mappedByOrOptions?: (string & keyof Target) | (e: Target) => any | Partial<OneToOneOptions<Owner, Target>>, options?: Partial<OneToOneOptions<Owner, Target>>): (target: Partial<any>, propertyName: string) => any
Parameters
Returns (target: Partial<any>, propertyName: string) => any
- (target: Partial<any>, propertyName: string): any
Parameters
target: Partial<any>
propertyName: string
Returns any