Project

General

Profile

Actions

Support #2558

closed

Wt::Dbo ManyToMany question

Added by Anonymous over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
01/14/2014
Due date:
% Done:

0%

Estimated time:

Description

Hello,

in the example "posts & tags": is dbo::OnDeleteCascade applied automatically when a post or a tag is removed ?

thank you for your answer

Actions #1

Updated by Koen Deforche about 10 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche

Hey,

Removing a record involved in a Many-to-Many relation will automatically also remove the record from the join table but will not affect the other object, so it's not really comparable to a Many-to-One relation.

This is not so odd: in the posts-tags example? Why would you want a tag to be deleted when one deletes a post or vice versa? But it is of course natural that the relation between a post and tag is removed if one removes a post or tag.

Regards,

koen

Actions #2

Updated by Koen Deforche about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF