Models - Relationships

Create relationship

Bind models and create a relationship between them.

There are three types of relationships between the models you can set:

  • one-to-one
  • one-to-many
  • many-to-many

Click on the new relation button below the model container to open the modal window. Here, you will choose to which existing model you want to establish a relationship with. By answering several simple questions, we will automatically identify and determine the relationship type with the desired Model.

Click "Save changes" and you're done. You've established the relationship.

Edit and manage the relationship between models

Click on the relationship line between the models. If you don't see it, click the "Show relationships" button from the toolbar, located above the canvas section. Click on the line to open the modal window where you can edit the existing relationship.

Set data referential integrity of the existing records when changing or deleting the relationship between two models. In this way, you will strictly determine what you want to do with the data from the related models.

Keep in mind that these saved changes may affect your solution if you opt to transfer the solution, and all of these settings from development to production environment.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated