@mikro-orm/coreFunctionsVersion: Nextref shortcut for wrap(entity).toReference()Callableref(entity: T | Ref<T>): Ref<T> & LoadedReference<Loaded<T, AddEager<T>>>ref(entityType: EntityClass<T>, pk?: T | PKV): Ref<T>ref(value: T | Ref<T>): Ref<T> & LoadedReference<Loaded<T, AddEager<T>>>shortcut for wrap(entity).toReference()Parametersentity: T | Ref<T>Returns Ref<T> & LoadedReference<Loaded<T, AddEager<T>>>
shortcut for
wrap(entity).toReference()