TiagoSilvaPereira / vemto2-issues

Repository to track Vemto 2 Issues
5 stars 0 forks source link

Relationships tab crashes in Belongs To Many relationship when ‘With Pivot Columns’ checkbox is clicked #207

Open RanaMoizHaider opened 2 months ago

RanaMoizHaider commented 2 months ago

Error Message: None

How to reproduce:

  1. Go to Table Options by clicking on a table.
  2. Go to Models Tab.
  3. Go to Relationships Tab.
  4. Add a new "Belongs To Many" relationship.
  5. Click on checkbox "With Pivot Columns".

Expected behavior: It should ask which pivot columns to create or should create pivot table and let me proceed with adding columns myself in that table.

Actual behavior: Relationships Tab crashes and unable to edit anything until reopened.


Vemto Version 2.1.6 (2.1.6) macOS Sequoia (15.0) Locale: en-US App version: 2.1.6

TiagoSilvaPereira commented 2 months ago

Hi @RanaMoizHaider thanks for reporting. Just to add little info, the "with Pivot Columns" is just to add the ->withPivot() method to the relationship. You don't need to mark this option to create the pivot table with the pivot columns (Vemto creates them automatically)