Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cascade Deletion Problem might be a bug

Featured Replies

I have 2 tables (A & :) with a one-to-many relationship and the "Delete related records on this table when a record is deleted in the other table" is ON on table B.

So when I delete a record on table A, all related records on table B is deleted. It's working as expected.

Now, I created another instance of A & B in the Relationships window and called them A2 & B2 and there is NO relationship between them. Created 2 layouts that used the A2 & B2 table instances.

Now when I delete a record on A2, the records on B2 ARE ALSO deleted. Is that suppose to happen even though there is NO Relationship between them?

And I also tried putting a one-to-many relationship and this time, Turning the "Delete related records on this table when a record is deleted in the other table" OFF on the B2 table.

And when I delete a record on A2, it does the same thing. It seems like it still using the relationship between A & B instead of A2 & B2.

Is this a bug? I haven't tried any database maintenance yet. I'm going to do it, and I'll see if anything changes.

Is this a bug?

No. It cannot work any other way. The option to delete related records is designed to ensure relational integrity (preventing orphans in your example). Usually, you would use this in your core relationships. If defining another relationship (say, for the purpose of a value list) would cancel out the core setting, the results would be disastrous.

Another way to look at it: you delete records from a table - not just from one specific occurrence of the table.

  • Author

THANK YOU!!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.