Skip to content

Model Class

associationInfo()

associationInfo() — returns struct

Available in: model Category: Miscellaneous Functions

Returns a struct containing all association definitions for this model. Each key is the association name, and the value is a struct with association metadata including type (belongsTo, hasMany, hasOne), modelName, foreignKey, joinKey, and dependent.