Actions
Support #2558
closedWt::Dbo ManyToMany question
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
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
Updated by Koen Deforche about 10 years ago
- Status changed from Resolved to Closed
Actions