I have specified constraints for my foreign key but I am still getting “Constraint may cause cycles or multiple cascade paths”, how do I fix this?
Ive been trying to update my database with these three classes, Product, CartItem, and ProductAttribute (, but gives me an error that there is a cycle and that the delete actions must be specified. Now I have tried to make it such that if the Product gets deleted, then the CartItem and the Product Attribute also gets deleted but if the CartItem or the Product Attribute is deleted, then the Product will not be deleted. I have tried to add rules (plus new migration and updating) but I keep getting the same error: