A variable of type Relationship provides access to data for a relationship. It has the following variables:
Name | Type | Description |
---|---|---|
type | String scalar | The type of the relationship. |
description | String scalar | The description of the relationship. |
identifying | Boolean scalar | Whether the relationship is identifying. |
cascadeDelete | Boolean scalar | The value of cascade delete for the relationship. |
isOneToOne | method returning a Boolean scalar | Returns true if the relationship type is one-to-one. |
isOneToMany | method returning a Boolean scalar | Returns true if the relationship type is one-to-many. |
parent | Entity hash | The parent entity for the relationship. |
child | Entity hash | The child entity for the relationship. |
parentAssociationName | String scalar | The association name for the relationships parent entity. |
childAssociationName | String scalar | The association name for the relationships child entity. |
Template data model
Relationship
Entity variables