# Source: https://mikro-orm.io/api/core/function/ManyToOne.md

# ManyToOne<!-- -->

### Callable

* ****ManyToOne**\<T, O>(entity, options): (target, propertyName) => any

***

* #### Parameters

  * ##### entity: string | [ManyToOneOptions](https://mikro-orm.io/api/core/interface/ManyToOneOptions.md)\<T, O> | (e) => [EntityName](https://mikro-orm.io/api/core.md#EntityName)\<T> = <!-- -->{}
  *
    ##### options: Partial<[ManyToOneOptions](https://mikro-orm.io/api/core/interface/ManyToOneOptions.md)\<T, O>> = <!-- -->{}

  #### Returns (target, propertyName) => any

  * * **(target, propertyName): any

    - #### Parameters

      * ##### target: Partial\<any>
      * ##### propertyName: string

      #### Returns any