InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference  /  Property Keywords

Class Definition Reference
Previous section           Next section
InterSystems: The power behind what matters   

Specifies the action to take in the current table when a related object is deleted. This keyword applies only to a relationship property that specifies Cardinality as Parent or One. Its use is invalid in all other contexts.
To specify the action to take in the current table when a related object is deleted, use the following syntax:
Relationship relname As classname [ Cardinality = cardinality, Inverse = inverse, OnDelete = ondelete ];
Where ondelete is one of the following values. In this discussion, related record is a record or object belonging to the other side of the relationship, and referencing record is the record or object in this side of the relationship.
This keyword defines the referential action that occurs when a record is deleted on the other side of a relationship.
If you omit this keyword, then:
Relationship Patient As MyApp.Patient [ Cardinality = parent, Inverse = Diagnoses, OnDelete = cascade ];
See Also

Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-10-18 06:48:42