Documentation / @blazetrails/activerecord / reflectOnAllAssociations
Function: reflectOnAllAssociations()
reflectOnAllAssociations(
modelClass,macro?): (AssociationReflection|ThroughReflection)[]
Defined in: packages/activerecord/lib/reflection.ts:1706
Parameters
| Parameter | Type |
|---|---|
modelClass | typeof Base |
macro? | "belongsTo" | "hasOne" | "hasMany" | "hasAndBelongsToMany" |