getParentRecord
Returns the parent record (or parent’s parent, etc.) that’s an instance of the provided class.
getParentRecord<T extends ManagedRecord>(ParentClass?: ManagedObject.Constructor<T>): T | undefined
Notes
- If no class is provided, the closest ManagedRecord parent is returned, if any.
Related
- class ManagedRecordA class that can be used to describe data models based on ManagedObject.