Framework
CascadeOp
Cascade operation collected during delete traversal.
| Property | Type | Description |
|---|
action? | "cascade" | "setNull" | Action to take. - 'cascade': Delete the related record - 'setNull': Set the FK to null |
depth | number | Depth in the cascade tree (0 = direct children). |
foreignKey | string | Foreign key field name. |
id? | string | Record ID to operate on. |
junctionModel? | string | Junction model name (for 'junction' type). |
model? | string | Target model name (for 'relation' type). |
type | "relation" | "junction" | Type of cascade operation. - 'relation': Regular relation (hasMany, hasOne) - 'junction': Many-to-many junction table entry |