LogoRobo.js
Framework

CascadeOp

Interface: CascadeOp

Cascade operation collected during delete traversal.

Properties

PropertyTypeDescription
action?"cascade" | "setNull"Action to take. - 'cascade': Delete the related record - 'setNull': Set the FK to null
depthnumberDepth in the cascade tree (0 = direct children).
foreignKeystringForeign key field name.
id?stringRecord ID to operate on.
junctionModel?stringJunction model name (for 'junction' type).
model?stringTarget model name (for 'relation' type).
type"relation" | "junction"Type of cascade operation. - 'relation': Regular relation (hasMany, hasOne) - 'junction': Many-to-many junction table entry

On this page