Model Class
associationInfo()
Signature
Section titled “Signature”associationInfo() — returns struct
Available in: model
Category: Miscellaneous Functions
Description
Section titled “Description”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.