WebVella/WebVella-ERP

Delete record that is related to another

Closed this issue · 0 comments

If I try to delete a record that is:

  1. one to many relation -> we should check if the related field on the other entity is required, If so the deletion should fail until there is related records. If the related field is not required it should not fail, but update with NULL all other entity's records that have the related field value of the deleted record.
  2. many to many relation -> we should be able to delete records and delete also the record in the auxiliary table. There is no way to enforce required relation here.