I have two tables: T_User and T_Order
T_User
--------
ID
Name
T_Order
has to foreign keys to T_User
T_Order
--------
ID
FK_UserActionOwnerID
FK_UserActionReceiverID
I made two relations then on my diagram from T_User ID
to both FK's in T_Order
. I also set for both relationships delete and update rules
to cascade
because i want if T_User
record will be deleted so therefore records in T_Order
should be deleted or if T_User
ID
would change then also update it in T_Order.
Nevertheless i get following error:
'T_User' table saved successfully 'T_Order' table - Unable to create relationship 'FK_T_Order_T_Users1'. Introducing FOREIGN KEY constraint 'FK_T_Order_T_Users1' on table 'T_Order' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. Could not create constraint or index. See previous errors.
Real diagram: click here